Browse Source

update

master
shenjiachi 5 days ago
parent
commit
61c2cc198c
2 changed files with 2 additions and 4 deletions
  1. +1
    -3
      app/hdl/member_center/hdl_tag__management.go
  2. +1
    -1
      app/md/member_center/md_tag_management.go

+ 1
- 3
app/hdl/member_center/hdl_tag__management.go View File

@@ -68,9 +68,7 @@ func AddTag(c *gin.Context) {
TagName: req.Name, TagName: req.Name,
Memo: req.Memo, Memo: req.Memo,
CreateAt: time.Now().Format("2006-01-02 15:04:05"), CreateAt: time.Now().Format("2006-01-02 15:04:05"),
}
if req.IsPunish == "1" {
tag.IsPunish = 1
IsPunish: req.IsPunish,
} }
tagDb := implement.NewUserTagDb(db.Db) tagDb := implement.NewUserTagDb(db.Db)
tagID, err := tagDb.UserTagInsert(&tag) tagID, err := tagDb.UserTagInsert(&tag)


+ 1
- 1
app/md/member_center/md_tag_management.go View File

@@ -17,7 +17,7 @@ type GetTagListResp struct {
type AddTagReq struct { type AddTagReq struct {
Name string `json:"name,required"` // 标签名称 Name string `json:"name,required"` // 标签名称
Memo string `json:"memo,required"` // 备注 Memo string `json:"memo,required"` // 备注
IsPunish string `json:"is_punish,required"` // 是否为处罚标签(0:否 1:是)
IsPunish int `json:"is_punish,required"` // 是否为处罚标签(0:否 1:是)
} }


type UpdateTagReq struct { type UpdateTagReq struct {


Loading…
Cancel
Save