mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-07 09:01:18 +08:00
大量更改,主要是int,float类型支持null、字符串
This commit is contained in:
53
server/admin/user_protocol/user_protocol_schema.go
Normal file
53
server/admin/user_protocol/user_protocol_schema.go
Normal file
@@ -0,0 +1,53 @@
|
||||
package user_protocol
|
||||
import (
|
||||
"x_admin/core"
|
||||
|
||||
)
|
||||
|
||||
//UserProtocolListReq 用户协议列表参数
|
||||
type UserProtocolListReq struct {
|
||||
Title *string `` // 标题
|
||||
Content *string `` // 协议内容
|
||||
Sort *float64 `` // 排序
|
||||
CreateTimeStart *string `` // 开始创建时间
|
||||
CreateTimeEnd *string `` // 结束创建时间
|
||||
UpdateTimeStart *string `` // 开始更新时间
|
||||
UpdateTimeEnd *string `` // 结束更新时间
|
||||
}
|
||||
|
||||
|
||||
|
||||
//UserProtocolAddReq 用户协议新增参数
|
||||
type UserProtocolAddReq struct {
|
||||
Title *string `` // 标题
|
||||
Content *string `` // 协议内容
|
||||
Sort core.NullFloat `` // 排序
|
||||
}
|
||||
|
||||
//UserProtocolEditReq 用户协议编辑参数
|
||||
type UserProtocolEditReq struct {
|
||||
Id int `` //
|
||||
Title *string `` // 标题
|
||||
Content *string `` // 协议内容
|
||||
Sort core.NullFloat `` // 排序
|
||||
}
|
||||
|
||||
//UserProtocolDetailReq 用户协议详情参数
|
||||
type UserProtocolDetailReq struct {
|
||||
Id int `` //
|
||||
}
|
||||
|
||||
//UserProtocolDelReq 用户协议删除参数
|
||||
type UserProtocolDelReq struct {
|
||||
Id int `` //
|
||||
}
|
||||
|
||||
//UserProtocolResp 用户协议返回信息
|
||||
type UserProtocolResp struct {
|
||||
Id int `` //
|
||||
Title string `` // 标题
|
||||
Content string `` // 协议内容
|
||||
Sort core.NullFloat `` // 排序
|
||||
CreateTime core.NullTime `` // 创建时间
|
||||
UpdateTime core.NullTime `` // 更新时间
|
||||
}
|
Reference in New Issue
Block a user