Browse Source

荣誉列表ID转字符串

master
超级管理员 3 years ago
parent
commit
18a20467b7
  1. 2
      api/version1/honoraryArchives/honors.go
  2. 2
      api/version1/honoraryArchives/type.go

2
api/version1/honoraryArchives/honors.go

@ -85,6 +85,7 @@ func (a *ApiMethod) HonorList(c *gin.Context) {
} else {
gshscCont.TermOfValidityStr = "永久"
}
gshscCont.Uuid = strconv.FormatInt(v.Id, 10)
gshscList = append(gshscList, gshscCont)
}
publicmethod.ResultList(0, requestData.Page, requestData.PageSize, total, int64(len(gshscList)), gshscList, c)
@ -410,5 +411,6 @@ func (a *ApiMethod) GetHonorsCont(c *gin.Context) {
} else {
outData.TermOfValidityStr = "永久"
}
outData.Uuid = receivedValue.Id
publicmethod.Result(0, outData, c)
}

2
api/version1/honoraryArchives/type.go

@ -77,6 +77,7 @@ type honorslist struct {
AwardTimeStr string `json:"awardtimestr"` //获奖时间
TermOfValidityStr string `json:"termvaliditytr"` //获奖时间
CarrierName string `json:"carriername"` //载体名称
Uuid string `json:"uuid"`
}
// 查询荣誉详情输出
@ -85,4 +86,5 @@ type lookHonorsCont struct {
AwardTimeStr string `json:"awardtimestr"` //获奖时间
TermOfValidityStr string `json:"termvaliditytr"` //获奖时间
ImgUrl []modelshonory.PhotosGallery `json:"imgurl"` //图片集
Uuid string `json:"uuid"`
}

Loading…
Cancel
Save