diff --git a/server/resource/internal/logic/logocombinelogic.go b/server/resource/internal/logic/logocombinelogic.go index 2a601548..b5e601d2 100644 --- a/server/resource/internal/logic/logocombinelogic.go +++ b/server/resource/internal/logic/logocombinelogic.go @@ -104,7 +104,7 @@ func (l *LogoCombineLogic) LogoCombine(req *types.LogoCombineReq, userinfo *auth GuestId: guestId, TemplateTag: req.TemplateTag, Website: req.Website, - Slogan: req.Slogan, + Slogan: &req.Slogan, Phone: req.Phone, Address: req.Address, Qrcode: req.Qrcode, diff --git a/server/resource/internal/types/types.go b/server/resource/internal/types/types.go index d7d8b473..bf23f3b1 100644 --- a/server/resource/internal/types/types.go +++ b/server/resource/internal/types/types.go @@ -38,8 +38,8 @@ type LogoCombineReq struct { TemplateTagGroups []TemplateTagGroups `json:"template_tag_groups"` TemplateId int64 `json:"template_id"` // 合图参数 TemplateTag string `json:"template_tag"` // 合图参数 + Slogan string `json:"slogan,optional"` // 合图参数 Website *string `json:"website,optional"` // 合图参数 - Slogan *string `json:"slogan,optional"` // 合图参数 Address *string `json:"address,optional"` // 合图参数 Phone *string `json:"phone,optional"` // 合图参数 Qrcode *string `json:"qrcode,optional"` // 合图参数 diff --git a/server_api/resource.api b/server_api/resource.api index 7f600ee0..fdf9a1e7 100644 --- a/server_api/resource.api +++ b/server_api/resource.api @@ -70,8 +70,8 @@ type ( TemplateTagGroups []TemplateTagGroups `json:"template_tag_groups"` TemplateId int64 `json:"template_id"` // 合图参数 TemplateTag string `json:"template_tag"` // 合图参数 + Slogan string `json:"slogan,optional"` // 合图参数 Website *string `json:"website,optional"` // 合图参数 - Slogan *string `json:"slogan,optional"` // 合图参数 Address *string `json:"address,optional"` // 合图参数 Phone *string `json:"phone,optional"` // 合图参数 Qrcode *string `json:"qrcode,optional"` // 合图参数