实现门店桌面设置相关配置
This commit is contained in:
16
api/desktop/desktop.go
Normal file
16
api/desktop/desktop.go
Normal file
@ -0,0 +1,16 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package desktop
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"server/api/desktop/v1"
|
||||
)
|
||||
|
||||
type IDesktopV1 interface {
|
||||
Get(ctx context.Context, req *v1.GetReq) (res *v1.GetRes, err error)
|
||||
Save(ctx context.Context, req *v1.SaveReq) (res *v1.SaveRes, err error)
|
||||
}
|
||||
22
api/desktop/v1/desktop.go
Normal file
22
api/desktop/v1/desktop.go
Normal file
@ -0,0 +1,22 @@
|
||||
package v1
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type GetReq struct {
|
||||
g.Meta `path:"/desktop" method:"get" tags:"Desktop" summary:"(PC)获取桌面信息"`
|
||||
StoreId int64 `json:"storeId" v:"required#请选择店铺" dc:"门店id"`
|
||||
}
|
||||
type GetRes struct {
|
||||
TopComponentVisible int `json:"topComponentVisible"`
|
||||
RightComponentVisible int `json:"rightComponentVisible"`
|
||||
}
|
||||
|
||||
type SaveReq struct {
|
||||
g.Meta `path:"/desktop" method:"post" tags:"Desktop" summary:"(PC)保存桌面信息"`
|
||||
StoreId int64 `json:"storeId" v:"required#请选择店铺" dc:"门店id"`
|
||||
TopComponentVisible int `json:"topComponentVisible" v:"in:1,2#显示隐藏只能选择1或2"`
|
||||
RightComponentVisible int `json:"rightComponentVisible" v:"in:1,2#显示隐藏只能选择1或2"`
|
||||
}
|
||||
type SaveRes struct {
|
||||
Success bool `json:"success" dc:"是否成功"`
|
||||
}
|
||||
@ -15,4 +15,5 @@ type IRewardV1 interface {
|
||||
Create(ctx context.Context, req *v1.CreateReq) (res *v1.CreateRes, err error)
|
||||
Update(ctx context.Context, req *v1.UpdateReq) (res *v1.UpdateRes, err error)
|
||||
Delete(ctx context.Context, req *v1.DeleteReq) (res *v1.DeleteRes, err error)
|
||||
Callback(ctx context.Context, req *v1.CallbackReq) (res *v1.CallbackRes, err error)
|
||||
}
|
||||
|
||||
@ -59,3 +59,5 @@ type CallbackReq struct {
|
||||
g.Meta `path:"/reward/callback" method:"post" tags:"Reward" summary:"(tencent)回调"`
|
||||
UserId int64 `json:"userId" v:"required#用户ID不能为空" dc:"用户ID"`
|
||||
}
|
||||
type CallbackRes struct {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user