正在显示
9 个修改的文件
包含
201 行增加
和
0 行删除
| 1 | +version: v1 | ||
| 2 | +kind: Schema | ||
| 3 | +metadata: | ||
| 4 | + name: dictionary | ||
| 5 | + description: 字典 | ||
| 6 | + attributes: | ||
| 7 | + - name: dictionaryId | ||
| 8 | + description: 字典编号 主键 | ||
| 9 | + type: | ||
| 10 | + primitive: int | ||
| 11 | + - name: dictCode | ||
| 12 | + description: 字典编码 | ||
| 13 | + type: | ||
| 14 | + primitive: string | ||
| 15 | + - name: dictName | ||
| 16 | + description: 字典名称 | ||
| 17 | + type: | ||
| 18 | + primitive: string | ||
| 19 | + - name: enableStatus | ||
| 20 | + description: 启用状态(启用:1 禁用:2) | ||
| 21 | + type: | ||
| 22 | + primitive: int | ||
| 23 | + - name: desc | ||
| 24 | + description: 备注信息 | ||
| 25 | + type: | ||
| 26 | + primitive: string | ||
| 27 | + - name: dictItems | ||
| 28 | + description: 字典值列表 | ||
| 29 | + type: | ||
| 30 | + array: dictionaryItem |
| 1 | +version: v1 | ||
| 2 | +kind: Schema | ||
| 3 | +metadata: | ||
| 4 | + name: dictionaryItem | ||
| 5 | + description: 字典明细项 | ||
| 6 | + attributes: | ||
| 7 | + - name: itemCode | ||
| 8 | + description: 项编码 | ||
| 9 | + type: | ||
| 10 | + primitive: string | ||
| 11 | + - name: itemLabel | ||
| 12 | + description: 项标签 | ||
| 13 | + type: | ||
| 14 | + primitive: string | ||
| 15 | + - name: itemValue | ||
| 16 | + description: 值 | ||
| 17 | + type: | ||
| 18 | + primitive: string | ||
| 19 | + - name: enableStatus | ||
| 20 | + description: 启用状态(启用:1 禁用:2) | ||
| 21 | + type: | ||
| 22 | + primitive: string | ||
| 23 | + - name: sort | ||
| 24 | + description: 显示序号 | ||
| 25 | + type: | ||
| 26 | + primitive: int |
| 1 | +version: v1 | ||
| 2 | +kind: HttpApi | ||
| 3 | +metadata: | ||
| 4 | + service: loginAccess | ||
| 5 | + path: /auth | ||
| 6 | + endpoints: | ||
| 7 | + - method: loginByAccount | ||
| 8 | + route: | ||
| 9 | + post: /by-account | ||
| 10 | + - method: loginBySmsCode | ||
| 11 | + route: | ||
| 12 | + post: /by-smscode | ||
| 13 | + - method: loginByScanQrcode | ||
| 14 | + route: | ||
| 15 | + get: /by-qrcode | ||
| 16 | + - method: getQrcodeForLogin | ||
| 17 | + route: | ||
| 18 | + get: /get-qrcode | ||
| 19 | + - method: loginInfoByAuthCode | ||
| 20 | + route: | ||
| 21 | + get: /profile |
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: getQrcodeForLogin | ||
| 5 | + type: query | ||
| 6 | + description: 获取扫码登录用的二维码信息 | ||
| 7 | + result: | ||
| 8 | + - name: authCode | ||
| 9 | + description: 登录认证的凭证 | ||
| 10 | + type: | ||
| 11 | + primitive: string | ||
| 12 | + - name: imgBase64 | ||
| 13 | + description: base64形式的二维码图片 | ||
| 14 | + type: | ||
| 15 | + primitive: string | ||
| 16 | + - name: loginAccess | ||
| 17 | + type: | ||
| 18 | + schema: loginAccess | ||
| 19 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: loginByAccount | ||
| 5 | + type: query | ||
| 6 | + description: 使用手机号和密码登录系统 | ||
| 7 | + payload: | ||
| 8 | + - name: account | ||
| 9 | + description: 账号 | ||
| 10 | + type: | ||
| 11 | + primitive: string | ||
| 12 | + - name: passwd | ||
| 13 | + description: 密码 | ||
| 14 | + type: | ||
| 15 | + primitive: string | ||
| 16 | + result: | ||
| 17 | + - name: authcode | ||
| 18 | + description: 登录认证的凭证 | ||
| 19 | + type: | ||
| 20 | + primitive: string | ||
| 21 | + - name: loginAccess | ||
| 22 | + type: | ||
| 23 | + schema: loginAccess | ||
| 24 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: loginByScanQrcode | ||
| 5 | + type: query | ||
| 6 | + description: 询问扫二维码方式登录的状态 | ||
| 7 | + payload: | ||
| 8 | + - name: authCode | ||
| 9 | + description: 登录认证的凭证 | ||
| 10 | + type: | ||
| 11 | + primitive: string | ||
| 12 | + result: | ||
| 13 | + - name: accessToken | ||
| 14 | + description: 真正的登录凭证 | ||
| 15 | + type: | ||
| 16 | + primitive: string | ||
| 17 | + - name: isLogin | ||
| 18 | + description: 是否可以登录 | ||
| 19 | + type: | ||
| 20 | + primitive: string | ||
| 21 | + - name: loginAccess | ||
| 22 | + type: | ||
| 23 | + schema: loginAccess | ||
| 24 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: loginBySmsCode | ||
| 5 | + type: query | ||
| 6 | + description: 使用手机号和短信验证码登录系统 | ||
| 7 | + payload: | ||
| 8 | + - name: phone | ||
| 9 | + description: 手机号 | ||
| 10 | + type: | ||
| 11 | + primitive: string | ||
| 12 | + - name: smsCode | ||
| 13 | + description: 短信验证码 | ||
| 14 | + type: | ||
| 15 | + primitive: string | ||
| 16 | + result: | ||
| 17 | + - name: authcode | ||
| 18 | + description: 登录认证的凭证 | ||
| 19 | + type: | ||
| 20 | + primitive: string | ||
| 21 | + - name: loginAccess | ||
| 22 | + type: | ||
| 23 | + schema: loginAccess | ||
| 24 | + required: true |
| 1 | +version: v1 | ||
| 2 | +kind: Method | ||
| 3 | +metadata: | ||
| 4 | + name: loginInfoByAuthCode | ||
| 5 | + type: query | ||
| 6 | + description: 获取具体的进入系统的凭证 | ||
| 7 | + payload: | ||
| 8 | + - name: authCode | ||
| 9 | + description: 登录认证的凭证 | ||
| 10 | + type: | ||
| 11 | + primitive: string | ||
| 12 | + - name: companyId | ||
| 13 | + description: 公司id | ||
| 14 | + type: | ||
| 15 | + primitive: string | ||
| 16 | + - name: organizationId | ||
| 17 | + description: 组织id | ||
| 18 | + type: | ||
| 19 | + primitive: string | ||
| 20 | + result: | ||
| 21 | + - name: accessToken | ||
| 22 | + description: 登录系统的凭证 | ||
| 23 | + type: | ||
| 24 | + primitive: string | ||
| 25 | + - name: loginAccess | ||
| 26 | + type: | ||
| 27 | + schema: loginAccess | ||
| 28 | + required: true |
-
请 注册 或 登录 后发表评论