req

package
v0.0.0-...-e5d1c0a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Captcha

type Captcha struct {
	Captcha   string `json:"captcha"`   // 验证码
	CaptchaId string `json:"captchaId"` // 验证码ID"`
}

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 DeleteReq

type DeleteReq struct {
	Table string  `json:"table"` //表单名称
	Ids   []int64 `json:"ids"`   //id list
}

type Fixcol

type Fixcol struct {
	Col string          `json:"col"` //字段名称
	Key interface{}     `json:"key"` //查询值
	Pdc mysql.Predicate `json:"pdc"` //关系
}

type GetObj

type GetObj struct {
	Table    string `json:"table"`
	OjbectId int64  `json:"objectId"`
	IsNeedFk bool   `json:"isNeedFk"` //是否解析外键
}

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 OrderCol

type OrderCol struct {
	Col string `json:"col"`
	Asc bool   `json:"asc"`
}

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"` //明细记录
}

修改新增请求

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL