mirror of
https://github.com/go-nunu/nunu-layout-advanced.git
synced 2025-09-26 20:41:33 +08:00
feat: change go version
This commit is contained in:
2
Makefile
2
Makefile
@@ -32,4 +32,4 @@ docker:
|
||||
|
||||
.PHONY: swag
|
||||
swag:
|
||||
swag init -g cmd/server/main.go -o ./docs --parseDependency
|
||||
swag init -g cmd/server/main.go -o ./docs
|
||||
|
34
docs/docs.go
34
docs/docs.go
@@ -43,7 +43,7 @@ const docTemplate = `{
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.LoginRequest"
|
||||
"$ref": "#/definitions/v1.LoginRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -51,7 +51,7 @@ const docTemplate = `{
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.LoginResponse"
|
||||
"$ref": "#/definitions/v1.LoginResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -77,7 +77,7 @@ const docTemplate = `{
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.RegisterRequest"
|
||||
"$ref": "#/definitions/v1.RegisterRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -85,7 +85,7 @@ const docTemplate = `{
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.Response"
|
||||
"$ref": "#/definitions/v1.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -112,7 +112,7 @@ const docTemplate = `{
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.GetProfileResponse"
|
||||
"$ref": "#/definitions/v1.GetProfileResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -140,7 +140,7 @@ const docTemplate = `{
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.UpdateProfileRequest"
|
||||
"$ref": "#/definitions/v1.UpdateProfileRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -148,7 +148,7 @@ const docTemplate = `{
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.Response"
|
||||
"$ref": "#/definitions/v1.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -156,21 +156,21 @@ const docTemplate = `{
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"github_com_go-nunu_nunu-layout-advanced_api_v1.GetProfileResponse": {
|
||||
"v1.GetProfileResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "integer"
|
||||
},
|
||||
"data": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.GetProfileResponseData"
|
||||
"$ref": "#/definitions/v1.GetProfileResponseData"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_go-nunu_nunu-layout-advanced_api_v1.GetProfileResponseData": {
|
||||
"v1.GetProfileResponseData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"nickname": {
|
||||
@@ -182,7 +182,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_go-nunu_nunu-layout-advanced_api_v1.LoginRequest": {
|
||||
"v1.LoginRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"email",
|
||||
@@ -199,21 +199,21 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_go-nunu_nunu-layout-advanced_api_v1.LoginResponse": {
|
||||
"v1.LoginResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "integer"
|
||||
},
|
||||
"data": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.LoginResponseData"
|
||||
"$ref": "#/definitions/v1.LoginResponseData"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_go-nunu_nunu-layout-advanced_api_v1.LoginResponseData": {
|
||||
"v1.LoginResponseData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"accessToken": {
|
||||
@@ -221,7 +221,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_go-nunu_nunu-layout-advanced_api_v1.RegisterRequest": {
|
||||
"v1.RegisterRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"email",
|
||||
@@ -238,7 +238,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_go-nunu_nunu-layout-advanced_api_v1.Response": {
|
||||
"v1.Response": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
@@ -250,7 +250,7 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_go-nunu_nunu-layout-advanced_api_v1.UpdateProfileRequest": {
|
||||
"v1.UpdateProfileRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"email"
|
||||
|
@@ -36,7 +36,7 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.LoginRequest"
|
||||
"$ref": "#/definitions/v1.LoginRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -44,7 +44,7 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.LoginResponse"
|
||||
"$ref": "#/definitions/v1.LoginResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -70,7 +70,7 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.RegisterRequest"
|
||||
"$ref": "#/definitions/v1.RegisterRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -78,7 +78,7 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.Response"
|
||||
"$ref": "#/definitions/v1.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -105,7 +105,7 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.GetProfileResponse"
|
||||
"$ref": "#/definitions/v1.GetProfileResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -133,7 +133,7 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.UpdateProfileRequest"
|
||||
"$ref": "#/definitions/v1.UpdateProfileRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -141,7 +141,7 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.Response"
|
||||
"$ref": "#/definitions/v1.Response"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -149,21 +149,21 @@
|
||||
}
|
||||
},
|
||||
"definitions": {
|
||||
"github_com_go-nunu_nunu-layout-advanced_api_v1.GetProfileResponse": {
|
||||
"v1.GetProfileResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "integer"
|
||||
},
|
||||
"data": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.GetProfileResponseData"
|
||||
"$ref": "#/definitions/v1.GetProfileResponseData"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_go-nunu_nunu-layout-advanced_api_v1.GetProfileResponseData": {
|
||||
"v1.GetProfileResponseData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"nickname": {
|
||||
@@ -175,7 +175,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_go-nunu_nunu-layout-advanced_api_v1.LoginRequest": {
|
||||
"v1.LoginRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"email",
|
||||
@@ -192,21 +192,21 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_go-nunu_nunu-layout-advanced_api_v1.LoginResponse": {
|
||||
"v1.LoginResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
"type": "integer"
|
||||
},
|
||||
"data": {
|
||||
"$ref": "#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.LoginResponseData"
|
||||
"$ref": "#/definitions/v1.LoginResponseData"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_go-nunu_nunu-layout-advanced_api_v1.LoginResponseData": {
|
||||
"v1.LoginResponseData": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"accessToken": {
|
||||
@@ -214,7 +214,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_go-nunu_nunu-layout-advanced_api_v1.RegisterRequest": {
|
||||
"v1.RegisterRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"email",
|
||||
@@ -231,7 +231,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_go-nunu_nunu-layout-advanced_api_v1.Response": {
|
||||
"v1.Response": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"code": {
|
||||
@@ -243,7 +243,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"github_com_go-nunu_nunu-layout-advanced_api_v1.UpdateProfileRequest": {
|
||||
"v1.UpdateProfileRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"email"
|
||||
|
@@ -1,14 +1,14 @@
|
||||
definitions:
|
||||
github_com_go-nunu_nunu-layout-advanced_api_v1.GetProfileResponse:
|
||||
v1.GetProfileResponse:
|
||||
properties:
|
||||
code:
|
||||
type: integer
|
||||
data:
|
||||
$ref: '#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.GetProfileResponseData'
|
||||
$ref: '#/definitions/v1.GetProfileResponseData'
|
||||
message:
|
||||
type: string
|
||||
type: object
|
||||
github_com_go-nunu_nunu-layout-advanced_api_v1.GetProfileResponseData:
|
||||
v1.GetProfileResponseData:
|
||||
properties:
|
||||
nickname:
|
||||
example: alan
|
||||
@@ -16,7 +16,7 @@ definitions:
|
||||
userId:
|
||||
type: string
|
||||
type: object
|
||||
github_com_go-nunu_nunu-layout-advanced_api_v1.LoginRequest:
|
||||
v1.LoginRequest:
|
||||
properties:
|
||||
email:
|
||||
example: 1234@gmail.com
|
||||
@@ -28,21 +28,21 @@ definitions:
|
||||
- email
|
||||
- password
|
||||
type: object
|
||||
github_com_go-nunu_nunu-layout-advanced_api_v1.LoginResponse:
|
||||
v1.LoginResponse:
|
||||
properties:
|
||||
code:
|
||||
type: integer
|
||||
data:
|
||||
$ref: '#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.LoginResponseData'
|
||||
$ref: '#/definitions/v1.LoginResponseData'
|
||||
message:
|
||||
type: string
|
||||
type: object
|
||||
github_com_go-nunu_nunu-layout-advanced_api_v1.LoginResponseData:
|
||||
v1.LoginResponseData:
|
||||
properties:
|
||||
accessToken:
|
||||
type: string
|
||||
type: object
|
||||
github_com_go-nunu_nunu-layout-advanced_api_v1.RegisterRequest:
|
||||
v1.RegisterRequest:
|
||||
properties:
|
||||
email:
|
||||
example: 1234@gmail.com
|
||||
@@ -54,7 +54,7 @@ definitions:
|
||||
- email
|
||||
- password
|
||||
type: object
|
||||
github_com_go-nunu_nunu-layout-advanced_api_v1.Response:
|
||||
v1.Response:
|
||||
properties:
|
||||
code:
|
||||
type: integer
|
||||
@@ -62,7 +62,7 @@ definitions:
|
||||
message:
|
||||
type: string
|
||||
type: object
|
||||
github_com_go-nunu_nunu-layout-advanced_api_v1.UpdateProfileRequest:
|
||||
v1.UpdateProfileRequest:
|
||||
properties:
|
||||
email:
|
||||
example: 1234@gmail.com
|
||||
@@ -97,14 +97,14 @@ paths:
|
||||
name: request
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.LoginRequest'
|
||||
$ref: '#/definitions/v1.LoginRequest'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.LoginResponse'
|
||||
$ref: '#/definitions/v1.LoginResponse'
|
||||
summary: 账号登录
|
||||
tags:
|
||||
- 用户模块
|
||||
@@ -119,14 +119,14 @@ paths:
|
||||
name: request
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.RegisterRequest'
|
||||
$ref: '#/definitions/v1.RegisterRequest'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.Response'
|
||||
$ref: '#/definitions/v1.Response'
|
||||
summary: 用户注册
|
||||
tags:
|
||||
- 用户模块
|
||||
@@ -140,7 +140,7 @@ paths:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.GetProfileResponse'
|
||||
$ref: '#/definitions/v1.GetProfileResponse'
|
||||
security:
|
||||
- Bearer: []
|
||||
summary: 获取用户信息
|
||||
@@ -155,14 +155,14 @@ paths:
|
||||
name: request
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.UpdateProfileRequest'
|
||||
$ref: '#/definitions/v1.UpdateProfileRequest'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/github_com_go-nunu_nunu-layout-advanced_api_v1.Response'
|
||||
$ref: '#/definitions/v1.Response'
|
||||
security:
|
||||
- Bearer: []
|
||||
summary: 修改用户信息
|
||||
|
Reference in New Issue
Block a user