69 lines
1.8 KiB
Go
69 lines
1.8 KiB
Go
package model
|
||
|
||
import (
|
||
"github.com/gogf/gf/v2/frame/g"
|
||
"github.com/gogf/gf/v2/os/gtime"
|
||
)
|
||
|
||
type RewardType struct {
|
||
g.Meta `orm:"table:reward_type"`
|
||
Id int64 `json:"id" dc:"ID" orm:"id,primary"`
|
||
Name string `json:"name" dc:"名称" orm:"name"`
|
||
Code string `json:"code" dc:"代号" orm:"code"`
|
||
Status int `json:"status" dc:"状态:1=启用,2=禁用" orm:"status"`
|
||
Description string `json:"description" dc:"描述" orm:"description"`
|
||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
|
||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
|
||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"删除时间"`
|
||
//StoreId int `json:"storeId" dc:"门店ID" orm:"store_id"`
|
||
StoreName string `json:"storeName" dc:"门店名称" orm:"store_name"`
|
||
}
|
||
type RewardTypeIn struct {
|
||
Page int
|
||
Size int
|
||
RoleName string
|
||
OperatorId int
|
||
}
|
||
|
||
type RewardTypeOut struct {
|
||
List []RewardType
|
||
Total int
|
||
}
|
||
|
||
type CreateRewardTypeIn struct {
|
||
Name string
|
||
Code string
|
||
Description string
|
||
Status int
|
||
StoreId int
|
||
}
|
||
|
||
type CreateRewardTypeOut struct {
|
||
Id int64
|
||
}
|
||
|
||
// UpdateRewardTypeIn 更新奖励类型传入参数
|
||
type UpdateRewardTypeIn struct {
|
||
Id int64
|
||
Name string
|
||
Code string
|
||
Description string
|
||
Status int
|
||
StoreId int
|
||
}
|
||
|
||
// UpdateRewardTypeOut 更新奖励类型返回参数
|
||
type UpdateRewardTypeOut struct {
|
||
Success bool
|
||
}
|
||
|
||
// DeleteRewardTypeIn 删除奖励类型传入参数
|
||
type DeleteRewardTypeIn struct {
|
||
Id int64
|
||
}
|
||
|
||
// DeleteRewardTypeOut 删除奖励类型返回参数
|
||
type DeleteRewardTypeOut struct {
|
||
Success bool
|
||
}
|