From 18a20467b7332e4e2e50566ce74b377c17f5987c Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Sat, 27 Aug 2022 14:08:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8D=A3=E8=AA=89=E5=88=97=E8=A1=A8ID=E8=BD=AC?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E4=B8=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/version1/honoraryArchives/honors.go | 2 ++ api/version1/honoraryArchives/type.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/api/version1/honoraryArchives/honors.go b/api/version1/honoraryArchives/honors.go index be5cfd2..95a2473 100644 --- a/api/version1/honoraryArchives/honors.go +++ b/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) } diff --git a/api/version1/honoraryArchives/type.go b/api/version1/honoraryArchives/type.go index e2aa517..3308dd5 100644 --- a/api/version1/honoraryArchives/type.go +++ b/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"` }