fix:重构合图模块
This commit is contained in:
parent
f65f5673f8
commit
90229ca23e
|
@ -65,6 +65,7 @@ func (l *LogoCombineLogic) LogoCombine(req *types.LogoCombineReq, userinfo *auth
|
||||||
Slogan: req.Slogan,
|
Slogan: req.Slogan,
|
||||||
Phone: req.Phone,
|
Phone: req.Phone,
|
||||||
Address: req.Address,
|
Address: req.Address,
|
||||||
|
Qrcode: req.Qrcode,
|
||||||
})
|
})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
@ -17,6 +17,7 @@ type LogoCombineReq struct {
|
||||||
Slogan string `form:"slogan,optional"` // 合图参数
|
Slogan string `form:"slogan,optional"` // 合图参数
|
||||||
Address string `form:"address,optional"` // 合图参数
|
Address string `form:"address,optional"` // 合图参数
|
||||||
Phone string `form:"phone,optional"` // 合图参数
|
Phone string `form:"phone,optional"` // 合图参数
|
||||||
|
Qrcode string `form:"qrcode,optional"` // 合图参数
|
||||||
}
|
}
|
||||||
|
|
||||||
type Request struct {
|
type Request struct {
|
||||||
|
|
|
@ -32,5 +32,6 @@ type (
|
||||||
Slogan string `form:"slogan,optional"` // 合图参数
|
Slogan string `form:"slogan,optional"` // 合图参数
|
||||||
Address string `form:"address,optional"` // 合图参数
|
Address string `form:"address,optional"` // 合图参数
|
||||||
Phone string `form:"phone,optional"` // 合图参数
|
Phone string `form:"phone,optional"` // 合图参数
|
||||||
|
Qrcode string `form:"qrcode,optional"` // 合图参数
|
||||||
}
|
}
|
||||||
)
|
)
|
|
@ -47,10 +47,11 @@ type (
|
||||||
GuestId int64 `json:"guest_id"`
|
GuestId int64 `json:"guest_id"`
|
||||||
TemplateId int64 `json:"template_id"`
|
TemplateId int64 `json:"template_id"`
|
||||||
TemplateTag string `json:"resource_key"`
|
TemplateTag string `json:"resource_key"`
|
||||||
Website string `form:"website,optional"` // 合图参数
|
Website string `json:"website"` // 合图参数
|
||||||
Slogan string `form:"slogan,optional"` // 合图参数
|
Slogan string `json:"slogan"` // 合图参数
|
||||||
Address string `form:"address,optional"` // 合图参数
|
Address string `json:"address"` // 合图参数
|
||||||
Phone string `form:"phone,optional"` // 合图参数
|
Phone string `json:"phone"` // 合图参数
|
||||||
|
Qrcode string `json:"qrcode"` // 合图参数
|
||||||
}
|
}
|
||||||
LogoCombineRes struct {
|
LogoCombineRes struct {
|
||||||
ResourceId string
|
ResourceId string
|
||||||
|
@ -131,6 +132,7 @@ func (l *defaultImageHandle) LogoCombine(ctx context.Context, in *LogoCombineReq
|
||||||
combineParam["slogan"] = in.Slogan
|
combineParam["slogan"] = in.Slogan
|
||||||
combineParam["phone"] = in.Phone
|
combineParam["phone"] = in.Phone
|
||||||
combineParam["address"] = in.Address
|
combineParam["address"] = in.Address
|
||||||
|
combineParam["qrcode"] = in.Qrcode
|
||||||
|
|
||||||
var postMap = make(map[string]interface{}, 2)
|
var postMap = make(map[string]interface{}, 2)
|
||||||
postMap["module_data"] = moduleDataMap
|
postMap["module_data"] = moduleDataMap
|
||||||
|
|
Loading…
Reference in New Issue
Block a user