作者 tangxuhui

更新

  1 +version: v1
  2 +kind: HttpApi
  3 +metadata:
  4 + service: systemSetting
  5 + path: /system-settings
  6 + endpoints:
  7 + - method: updateSystemSetting
  8 + route:
  9 + put: /
  10 + - method: getSystemSetting
  11 + route:
  12 + post: /get
  13 + - method: listSystemSetting
  14 + route:
  15 + post: /search
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: pageIndex
  5 + description: 页码
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: pageSize
  5 + description: 每页数量
  6 + type:
  7 + primitive: int
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: companyId
  5 + description: 企业id
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: controlLevel
  5 + description: 管控层级
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: description
  5 + description: 描述
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: settingCode
  5 + description: 设置对应的编码
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: settingName
  5 + description: 设置对应的名称
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: systemSettingId
  5 + description: 数据id
  6 + type:
  7 + primitive: int64
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: value
  5 + description: 设定的值
  6 + type:
  7 + primitive: string
  1 +version: v1
  2 +kind: Attribute
  3 +metadata:
  4 + name: valueType
  5 + description: 值类型
  6 + type:
  7 + primitive: string
  1 +swagger: "2.0"
  2 +info:
  3 + title: ""
  4 + description: 天联基础
  5 + contact:
  6 + name: ""
  7 + email: ""
  8 + home: ""
  9 + version: 0.0.1
  10 +paths: {}
  11 +definitions:
  12 + LoginAccessGetQrcodeForLoginResponseBody:
  13 + title: 'Mediatype identifier: LoginAccessGetQrcodeForLoginResponseBody'
  14 + type: object
  15 + properties:
  16 + authCode:
  17 + type: string
  18 + description: 登录认证的凭证
  19 + imgBase64:
  20 + type: string
  21 + description: base64形式的二维码图片
  22 + loginAccess:
  23 + $ref: '#/definitions/loginAccessResponseBody'
  24 + LoginAccessLoginByAccountRequestBody:
  25 + title: LoginAccessLoginByAccountRequestBody
  26 + type: object
  27 + properties:
  28 + account:
  29 + type: string
  30 + description: 账号
  31 + passwd:
  32 + type: string
  33 + description: 密码
  34 + LoginAccessLoginByAccountResponseBody:
  35 + title: 'Mediatype identifier: LoginAccessLoginByAccountResponseBody'
  36 + type: object
  37 + properties:
  38 + authcode:
  39 + type: string
  40 + description: 登录认证的凭证
  41 + loginAccess:
  42 + $ref: '#/definitions/loginAccessResponseBody'
  43 + LoginAccessLoginByScanQrcodeRequestBody:
  44 + title: LoginAccessLoginByScanQrcodeRequestBody
  45 + type: object
  46 + properties:
  47 + authCode:
  48 + type: string
  49 + description: 登录认证的凭证
  50 + LoginAccessLoginByScanQrcodeResponseBody:
  51 + title: 'Mediatype identifier: LoginAccessLoginByScanQrcodeResponseBody'
  52 + type: object
  53 + properties:
  54 + accessToken:
  55 + type: string
  56 + description: 真正的登录凭证
  57 + isLogin:
  58 + type: string
  59 + description: 是否可以登录
  60 + loginAccess:
  61 + $ref: '#/definitions/loginAccessResponseBody'
  62 + LoginAccessLoginBySmsCodeRequestBody:
  63 + title: LoginAccessLoginBySmsCodeRequestBody
  64 + type: object
  65 + properties:
  66 + phone:
  67 + type: string
  68 + description: 手机号
  69 + smsCode:
  70 + type: string
  71 + description: 短信验证码
  72 + LoginAccessLoginBySmsCodeResponseBody:
  73 + title: 'Mediatype identifier: LoginAccessLoginBySmsCodeResponseBody'
  74 + type: object
  75 + properties:
  76 + authcode:
  77 + type: string
  78 + description: 登录认证的凭证
  79 + loginAccess:
  80 + $ref: '#/definitions/loginAccessResponseBody'
  81 + LoginAccessLoginInfoByAuthCodeRequestBody:
  82 + title: LoginAccessLoginInfoByAuthCodeRequestBody
  83 + type: object
  84 + properties:
  85 + authCode:
  86 + type: string
  87 + description: 登录认证的凭证
  88 + companyId:
  89 + type: string
  90 + description: 公司id
  91 + organizationId:
  92 + type: string
  93 + description: 组织id
  94 + LoginAccessLoginInfoByAuthCodeResponseBody:
  95 + title: 'Mediatype identifier: LoginAccessLoginInfoByAuthCodeResponseBody'
  96 + type: object
  97 + properties:
  98 + accessToken:
  99 + type: string
  100 + description: 登录系统的凭证
  101 + loginAccess:
  102 + $ref: '#/definitions/loginAccessResponseBody'
  103 + loginAccessResponseBody:
  104 + title: loginAccessResponseBody
  105 + type: object
  106 + properties:
  107 + accessExpired:
  108 + type: integer
  109 + description: 登录凭证过期时间,时间戳精度秒
  110 + format: int64
  111 + accessToken:
  112 + type: string
  113 + description: 登录凭证存储
  114 + account:
  115 + type: string
  116 + description: 账号
  117 + companyId:
  118 + type: integer
  119 + description: 公司id
  120 + format: int64
  121 + createdTime:
  122 + type: string
  123 + description: 创建时间
  124 + format: datetime
  125 + organizationId:
  126 + type: integer
  127 + description: 组织id
  128 + format: int64
  129 + platform:
  130 + type: string
  131 + description: 对应平台
  132 + refreshExpired:
  133 + type: integer
  134 + description: 刷新登录凭证过期时间,时间戳精度秒
  135 + format: int64
  136 + refreshToken:
  137 + type: string
  138 + description: 刷新登录凭证
  139 + updatedTime:
  140 + type: string
  141 + description: 更新时间
  142 + format: datetime
  143 + description: 登录凭证存储
  1 +version: v1
  2 +kind: Schema
  3 +metadata:
  4 + name: systemSetting
  5 + description: 系统参数设置
  6 + attributes:
  7 + - ref: companyId
  8 + required: true
  9 + - ref: controlLevel
  10 + required: true
  11 + - ref: description
  12 + required: true
  13 + - ref: settingCode
  14 + required: true
  15 + - ref: settingName
  16 + required: true
  17 + - ref: systemSettingId
  18 + required: true
  19 + - ref: value
  20 + required: true
  21 + - ref: valueType
  22 + required: true
@@ -5,14 +5,14 @@ metadata: @@ -5,14 +5,14 @@ metadata:
5 type: query 5 type: query
6 description: 返回数据字典设置列表 6 description: 返回数据字典设置列表
7 payload: 7 payload:
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true 8 + - ref: pageIndex
  9 + required: true
  10 + - ref: pageSize
  11 + required: true
12 result: 12 result:
13 - - ref: count  
14 - required: true  
15 - - name: dictionarys  
16 - type:  
17 - array: dictionary  
18 - required: true 13 + - ref: count
  14 + required: true
  15 + - name: dictionarys
  16 + type:
  17 + array: dictionary
  18 + required: true
@@ -9,14 +9,10 @@ metadata: @@ -9,14 +9,10 @@ metadata:
9 description: 接收方用户的id 9 description: 接收方用户的id
10 type: 10 type:
11 primitive: int64 11 primitive: int64
12 - - name: offset  
13 - description: 分页偏移量  
14 - type:  
15 - primitive: int64  
16 - - name: limit  
17 - description: 每页限制数量 默认20  
18 - type:  
19 - primitive: int64 12 + - ref: pageIndex
  13 + required: true
  14 + - ref: pageSize
  15 + required: true
20 - name: isRead 16 - name: isRead
21 description: 是否是已读 17 description: 是否是已读
22 type: 18 type:
@@ -5,14 +5,14 @@ metadata: @@ -5,14 +5,14 @@ metadata:
5 type: query 5 type: query
6 description: 返回编排消息通知内容列表 6 description: 返回编排消息通知内容列表
7 payload: 7 payload:
8 - - ref: offset  
9 - required: true  
10 - - ref: limit  
11 - required: true 8 + - ref: pageIndex
  9 + required: true
  10 + - ref: pageSize
  11 + required: true
12 result: 12 result:
13 - - ref: count  
14 - required: true  
15 - - name: noticeSettings  
16 - type:  
17 - array: noticeSetting  
18 - required: true 13 + - ref: count
  14 + required: true
  15 + - name: noticeSettings
  16 + type:
  17 + array: noticeSetting
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: getSystemSetting
  5 + type: query
  6 + description: 返回用户的系统设置
  7 + payload:
  8 + - ref: settingCode
  9 + required: true
  10 + - name: companyId
  11 + description: 企业id
  12 + type:
  13 + primitive: int64
  14 + result:
  15 + - name: systemSetting
  16 + type:
  17 + schema: systemSetting
  18 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: listSystemSetting
  5 + type: query
  6 + description: 返回用户的系统设置列表
  7 + payload:
  8 + - name: companyId
  9 + description: 公司id
  10 + type:
  11 + primitive: int64
  12 + - ref: settingCode
  13 + result:
  14 + - name: systemSettings
  15 + type:
  16 + array: systemSetting
  17 + required: true
  1 +version: v1
  2 +kind: Method
  3 +metadata:
  4 + name: updateSystemSetting
  5 + type: command
  6 + description: 更新用户的系统设置
  7 + payload:
  8 + - ref: settingCode
  9 + required: true
  10 + - ref: companyId
  11 + required: true
  12 + result:
  13 + - name: systemSetting
  14 + type:
  15 + schema: systemSetting
  16 + required: true
  1 +version: v1
  2 +kind: Service
  3 +metadata:
  4 + name: systemSetting
  5 + description: 用户的系统设置