From 6b22403bac397adfd9e3d1228a532d01465878a6 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Sat, 17 Aug 2024 18:09:30 +0800 Subject: [PATCH] 1 --- docs/docs.go | 10 ++++++++-- docs/swagger.json | 10 ++++++++-- docs/swagger.yaml | 5 +++++ go.mod | 2 +- 4 files changed, 22 insertions(+), 5 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 4e0edb9..865a9f0 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -730,11 +730,17 @@ const docTemplate = `{ "username" ], "properties": { + "code": { + "type": "string", + "example": "验证码" + }, "password": { - "type": "string" + "type": "string", + "example": "登录密码" }, "username": { - "type": "string" + "type": "string", + "example": "登录账号" } } }, diff --git a/docs/swagger.json b/docs/swagger.json index d20acc0..adc5015 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -722,11 +722,17 @@ "username" ], "properties": { + "code": { + "type": "string", + "example": "验证码" + }, "password": { - "type": "string" + "type": "string", + "example": "登录密码" }, "username": { - "type": "string" + "type": "string", + "example": "登录账号" } } }, diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 882b7d7..1b70624 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -45,9 +45,14 @@ definitions: type: object md.LoginReq: properties: + code: + example: 验证码 + type: string password: + example: 登录密码 type: string username: + example: 登录账号 type: string required: - password diff --git a/go.mod b/go.mod index 48b0bff..a9f8a77 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.18 //replace code.fnuoos.com/zhimeng/model.git => E:/company/ad/models 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/boombuler/barcode v1.0.1 github.com/dchest/uniuri v0.0.0-20200228104902-7aecb25e1fe5