实现了门店员工、员工角色的接口开发
This commit is contained in:
34
internal/model/storeDesktopSetting.go
Normal file
34
internal/model/storeDesktopSetting.go
Normal file
@ -0,0 +1,34 @@
|
||||
package model
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type StoreDesktopSettings struct {
|
||||
g.Meta `orm:"table:store_desktop_settings"`
|
||||
Id int64 `orm:"id" json:"id"` // 主键ID
|
||||
StoreId int64 `orm:"store_id" json:"store_id"` // 门店ID
|
||||
BackgroundUrl string `orm:"background_url" json:"background_url"` // 桌面背景图片URL
|
||||
Resolution string `orm:"resolution" json:"resolution"` // 分辨率,例如1920x1080
|
||||
IsTopWidgetVisible bool `orm:"is_top_widget_visible" json:"is_top_widget_visible"` // 顶部组件是否显示:FALSE=隐藏,TRUE=显示
|
||||
IsRightWidgetVisible bool `orm:"is_right_widget_visible" json:"is_right_widget_visible"` // 右侧组件是否显示:FALSE=隐藏,TRUE=显示
|
||||
}
|
||||
|
||||
type StoreGetDesktopSettingIn struct {
|
||||
OperatorId int64
|
||||
OperatorRole string
|
||||
StoreId int64
|
||||
}
|
||||
type StoreGetDesktopSettingOut struct {
|
||||
StoreDesktopSettings
|
||||
}
|
||||
|
||||
type SaveDesktopSettingIn struct {
|
||||
Id int64
|
||||
StoreId int64
|
||||
BackgroundUrl string
|
||||
Resolution string
|
||||
IsTopWidgetVisible bool
|
||||
IsRightWidgetVisible bool
|
||||
}
|
||||
type SaveDesktopSettingOut struct {
|
||||
Id int64
|
||||
}
|
||||
Reference in New Issue
Block a user