Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
Lang string `json:"lang"`
Name string `json:"name"`
// 任意类型
UUID any `json:"uuid"`
Team any `json:"team"`
Corp any `json:"corp"`
}
func NewAccount ¶
func ParseLogin ¶
type Record ¶
type Record struct {
// base info
Model string `json:"model"` // 模型名称
UUKey string `json:"uukey"` // 模型标示
LogID string `json:"logid"` // logid
// debug
Debug string `json:"debug,omitempty"` // 调试数据
Using string `json:"using,omitempty"` // 使用配置
Scene string `json:"scene,omitempty"` // 兼容旧字段,与 OpType 同步
Action string `json:"action,omitempty"` // 业务操作:load | depart | submit ...
Value object `json:"value,omitempty"` // 请求数据
Batch []any `json:"batch,omitempty"` // 批量处理
Extra object `json:"extra,omitempty"` // 额外参数
// 登录用户
Login *Account `json:"-"`
}
type Search ¶
type Search struct {
// base info
Model string `json:"model"` // 模型名称
UUKey string `json:"uukey"` // 模型标示
Scene string `json:"scene"` // 请求场景
LogID string `json:"logid"` // logid
// debug
Debug string `json:"debug,omitempty"` // 调试数据
// page info
Page uint16 `json:"page,omitempty"` // 分页索引
Size uint16 `json:"size,omitempty"` // 分页大小
// omit if empty
Using string `json:"using,omitempty"` // 查询字段
Order *Order `json:"order,omitempty"` // 排序条件
Query object `json:"query,omitempty"` // 查询条件
// Value object `json:"value,omitempty"` // 请求数据
// Batch []any `json:"batch,omitempty"` // 批量处理
Extra object `json:"extra,omitempty"` // 额外参数
// 登录用户
Login *Account `json:"-"`
}
func NewRequest ¶
Click to show internal directories.
Click to hide internal directories.