123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- package model
- //应用鉴权
- type LoginRequest struct {
- AppId string `json:"appId"`
- AppSecret string `json:"appSecret"`
- }
- //token刷新
- type RefreshTokenRequest struct {
- RefreshToken string `json:"refreshToken"`
- }
- //第三方接口服务
- type KeyVal struct {
- KeyStr string `json:"keyStr"`
- KeyVal string `json:"keyVal"`
- }
- //eq:= gt:> lt:< like
- type SearchParam struct {
- OR []KeyVal `json:"or"` //[{"xml.like":"张%"}]
- AND []KeyVal `json:"and"`//[{"xml.like":"张%"},{"xml.eq":"张%"}]
- }
- type RequestBody struct{
- Page
- Search SearchParam `json:"search"`
- }
- type RequestBody2 struct {
- RequestParam string `json:"requestParam"`
- }
- //type DesensitizationRule struct{
- // Left int `json:"left"` //左边保留的字符串长度
- // Right int `json:"right"` //右边保留的字符串长度
- // Fill string `json:"fill"` //填充的字符串
- //}
- type DesensitizationRule struct{
- RegStr string `json:"reqStr"`
- FillStr string `json:"fillStr"`
- }
- type ColNumDet struct {
- Name string `json:"name"`
- Type string `json:"type"`
- IsDesensitization int `json:"isDesensitization"`
- DesensitizationRule DesensitizationRule `json:"desensitizationRule"`
- }
- type AccessInfo struct {
- Enable int `json:"enable"`
- DbId int `json:"dbId"`
- TbName string `json:"tbName"`
- Colnum []ColNumDet `json:"colnum"`
- }
- //{
- // "enable":1,
- // "dbId":1,
- // "tbName":"zztest",
- // "colnum":[
- // {
- // "name":"identifyId",
- // "type":"varchar",
- // "isDesensitization":1 , //是否脱敏
- // "desensitizationRule":{
- // "left":3, //左边保留的字符串长度
- // "fill":"******", //填充字符
- // "right":4, //右边保留的字符串长度
- // }
- // }
- // ]
- //}
- //总队标准接口服务
- type CQ119Response struct{
- Code interface{} `json:"code"`
- Page int `json:"page"`
- Size int `json:"size"`
- Total int `json:"total"`
- Data []interface{} `json:"data"`
- Columns []interface{} `json:"columns"`
- }
- type DataShareNormalResponse struct{
- Code interface{} `json:"code"`
- Page int `json:"page"`
- Size int `json:"size"`
- Total int `json:"total"`
- Data []map[string]interface{} `json:"data"`
- Columns []interface{} `json:"columns"`
- }
- //服务调试接口
- type ApiTranslateRequest struct{
- ServiceUrl string `json:"serviceUrl"`
- RequestMethod string `json:"requestMethod"`
- ParamForm string `json:"paramForm"`
- AuthWay string `json:"authWay"`
- RequestParam string `json:"requestParam"`
- }
|