@@ -730,11 +730,17 @@ const docTemplate = `{ | |||||
"username" | "username" | ||||
], | ], | ||||
"properties": { | "properties": { | ||||
"code": { | |||||
"type": "string", | |||||
"example": "验证码" | |||||
}, | |||||
"password": { | "password": { | ||||
"type": "string" | |||||
"type": "string", | |||||
"example": "登录密码" | |||||
}, | }, | ||||
"username": { | "username": { | ||||
"type": "string" | |||||
"type": "string", | |||||
"example": "登录账号" | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
@@ -722,11 +722,17 @@ | |||||
"username" | "username" | ||||
], | ], | ||||
"properties": { | "properties": { | ||||
"code": { | |||||
"type": "string", | |||||
"example": "验证码" | |||||
}, | |||||
"password": { | "password": { | ||||
"type": "string" | |||||
"type": "string", | |||||
"example": "登录密码" | |||||
}, | }, | ||||
"username": { | "username": { | ||||
"type": "string" | |||||
"type": "string", | |||||
"example": "登录账号" | |||||
} | } | ||||
} | } | ||||
}, | }, | ||||
@@ -45,9 +45,14 @@ definitions: | |||||
type: object | type: object | ||||
md.LoginReq: | md.LoginReq: | ||||
properties: | properties: | ||||
code: | |||||
example: 验证码 | |||||
type: string | |||||
password: | password: | ||||
example: 登录密码 | |||||
type: string | type: string | ||||
username: | username: | ||||
example: 登录账号 | |||||
type: string | type: string | ||||
required: | required: | ||||
- password | - password | ||||
@@ -5,7 +5,7 @@ go 1.18 | |||||
//replace code.fnuoos.com/zhimeng/model.git => E:/company/ad/models | //replace code.fnuoos.com/zhimeng/model.git => E:/company/ad/models | ||||
require ( | require ( | ||||
code.fnuoos.com/zhimeng/model.git v0.0.3-0.20240816151818-a491f294f782 | |||||
code.fnuoos.com/zhimeng/model.git v0.0.3-0.20240817100708-dde162209cee | |||||
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 | github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5 | ||||
github.com/boombuler/barcode v1.0.1 | github.com/boombuler/barcode v1.0.1 | ||||
github.com/dchest/uniuri v0.0.0-20200228104902-7aecb25e1fe5 | github.com/dchest/uniuri v0.0.0-20200228104902-7aecb25e1fe5 | ||||