feat: optimize docker-compose, add observability stack (Grafana/Loki/Prometheus), and host nginx config
Build docker and publish / build (20.15.1) (push) Successful in 6m10s
Build docker and publish / build (20.15.1) (push) Successful in 6m10s
This commit is contained in:
@@ -121,6 +121,8 @@ func (l *UpdateUserBasicInfoLogic) UpdateUserBasicInfo(req *types.UpdateUserBasi
|
||||
userInfo.Commission = req.Commission
|
||||
}
|
||||
tool.DeepCopy(userInfo, req)
|
||||
userInfo.Remark = req.Remark
|
||||
userInfo.MemberStatus = req.MemberStatus
|
||||
userInfo.OnlyFirstPurchase = &req.OnlyFirstPurchase
|
||||
userInfo.ReferralPercentage = req.ReferralPercentage
|
||||
|
||||
|
||||
@@ -24,6 +24,8 @@ type User struct {
|
||||
EnableSubscribeNotify *bool `gorm:"default:false;not null;comment:Enable Subscription Notifications"`
|
||||
EnableTradeNotify *bool `gorm:"default:false;not null;comment:Enable Trade Notifications"`
|
||||
LastLoginTime *time.Time `gorm:"comment:Last Login Time"`
|
||||
MemberStatus string `gorm:"type:varchar(20);default:'';comment:Member Status"` // Member Status
|
||||
Remark string `gorm:"type:varchar(255);default:'';comment:Remark"` // Remark
|
||||
AuthMethods []AuthMethods `gorm:"foreignKey:UserId;references:Id"`
|
||||
UserDevices []Device `gorm:"foreignKey:UserId;references:Id"`
|
||||
CreatedAt time.Time `gorm:"<-:create;comment:Creation Time"`
|
||||
|
||||
@@ -2548,6 +2548,8 @@ type UpdateUserBasiceInfoRequest struct {
|
||||
RefererId int64 `json:"referer_id"`
|
||||
Enable bool `json:"enable"`
|
||||
IsAdmin bool `json:"is_admin"`
|
||||
MemberStatus string `json:"member_status"`
|
||||
Remark string `json:"remark"`
|
||||
}
|
||||
|
||||
type UpdateUserNotifyRequest struct {
|
||||
|
||||
Reference in New Issue
Block a user