Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionCreate ¶
type ActionCreate struct { Model model.IModel // model - 必须 CreateBefore func(*gin.Context, *map[string]interface{}) bool // 默认处理函数 CreateAfter func(*gin.Context, interface{}) // 默认处理函数 }
ActionCreate 创建
type ActionDelete ¶
type ActionDelete struct { Model model.IModel // model - 必须 DeleteBefore func(*gin.Context) bool // 默认处理函数 DeleteAfter func(*gin.Context, interface{}) // 默认处理函数 }
Delete 删除
type ActionDetail ¶
type ActionList ¶
type ActionList struct { Model model.IModel // model - 必须 QueryCond map[string]interface{} // 查询条件 ProcessRow func(*gin.Context, interface{}) // 默认处理函数 OrderBy func(*gin.Context) string // 获取排序 ListAfter func(*gin.Context, *map[string]interface{}) // 默认处理函数 - 用于判断或者追加数据 }
ActionList 数据列表
type ActionUpdate ¶
ActionUpdate 更新
Click to show internal directories.
Click to hide internal directories.