Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRequest ¶
type CreateRequest struct { Table string `json:"table"` //表单名称 Mdata map[string]interface{} `json:"mdata"` //父记录对象 //TODO:后期增加实现主表加明细 Idata []map[string]interface{} `json:"idata"` //明细数据 }
标准新增请求
{ "table": "SYS_DICT", "mdata": { "DICT_NAME": "sys_displaytype6", "DESCRIPTION": "字段显示控件6" }, "idata": [ { "SYS_DICTITEM": { "ORDERNO": 1, "LABEL": "输入框", "VALUE": "INTPUT" } }, { "SYS_DICTITEM": { "ORDERNO": 2, "LABEL": "下拉单选", "VALUE": "SELECT" } } ] }
type LoginReq ¶
type LoginReq struct { Username string `json:"username"` //用户名称 Phone string `json:"phone"` //手机号 CId int64 `json:"cid"` //客户id Password string `json:"password"` //密码 Captcha Captcha `json:"cap"` //验证码 }
登录
type Query ¶
type Query struct { Table string `json:"table"` //表单名称 FixColum []Fixcol `json:"fixColumn"` //条件 IsNeedFk bool `json:"isNeedFk"` //是否解析外键 Page int `json:"page"` //页 Row int `json:"row"` //行数 Order []OrderCol `json:"order"` //排序 IsNeedTot bool `json:"isNeedTot"` //是否需要返回合计 }
查询
type ReloadTableRequest ¶
type ReloadTableRequest struct {
Tables []string `json:"table"` //表单名称大写list
}
表单重载
type UpdateRequest ¶
type UpdateRequest struct { Table string `json:"table"` //表单名称 Mdata map[string]interface{} `json:"mdata"` //主记录更新对象 //TODO:后期增加实现主表加明细 Idata []map[string]interface{} `json:"idata"` //明细记录 }
修改新增请求
Click to show internal directories.
Click to hide internal directories.