shenjiachi pirms 1 nedēļas
vecāks
revīzija
1fda9baf01
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +1
    -1
      app/hdl/member_center/hdl_tag__management.go
  2. +1
    -1
      app/md/member_center/md_tag_management.go

+ 1
- 1
app/hdl/member_center/hdl_tag__management.go Parādīt failu

@@ -109,7 +109,7 @@ func UpdateTag(c *gin.Context) {
e.OutErr(c, e.ERR_NO_DATA, errors.New("标签不存在").Error())
return
}
if req.IsPunish != "" && oldTag.IsPunish != utils.StrToInt(req.IsPunish) {
if oldTag.IsPunish != req.IsPunish {
// 标签在被使用情况下不允许修改是否为处罚标签
recordsDb := implement.NewUserTagRecordsDb(db.Db)
exist, err := recordsDb.UserTagRecordsExist(0, tagID)


+ 1
- 1
app/md/member_center/md_tag_management.go Parādīt failu

@@ -24,7 +24,7 @@ type UpdateTagReq struct {
TagID string `json:"tag_id,required"` // 标签 ID
Name string `json:"name,required"` // 标签名称
Memo string `json:"memo,required"` // 备注
IsPunish string `json:"is_punish"` // 是否是惩罚标签
IsPunish int `json:"is_punish"` // 是否是惩罚标签
}

type DeleteTagReq struct {


Notiek ielāde…
Atcelt
Saglabāt