forked from ebhomengo/niki
fix(niki): update swagger
This commit is contained in:
parent
6b68385ed1
commit
ee64f70466
36
docs/docs.go
36
docs/docs.go
|
@ -861,6 +861,38 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"adminserviceparam.AdminInfo": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"first_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"gender": {
|
||||
"$ref": "#/definitions/entity.Gender"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"last_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"phone_number": {
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"$ref": "#/definitions/entity.AdminRole"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/definitions/entity.AdminStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"adminserviceparam.LoginWithPhoneNumberRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
@ -877,8 +909,8 @@ const docTemplate = `{
|
|||
"adminserviceparam.LoginWithPhoneNumberResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"admin": {
|
||||
"$ref": "#/definitions/entity.Admin"
|
||||
"admin_info": {
|
||||
"$ref": "#/definitions/adminserviceparam.AdminInfo"
|
||||
},
|
||||
"tokens": {
|
||||
"$ref": "#/definitions/adminserviceparam.Tokens"
|
||||
|
|
|
@ -850,6 +850,38 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"adminserviceparam.AdminInfo": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"email": {
|
||||
"type": "string"
|
||||
},
|
||||
"first_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"gender": {
|
||||
"$ref": "#/definitions/entity.Gender"
|
||||
},
|
||||
"id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"last_name": {
|
||||
"type": "string"
|
||||
},
|
||||
"phone_number": {
|
||||
"type": "string"
|
||||
},
|
||||
"role": {
|
||||
"$ref": "#/definitions/entity.AdminRole"
|
||||
},
|
||||
"status": {
|
||||
"$ref": "#/definitions/entity.AdminStatus"
|
||||
}
|
||||
}
|
||||
},
|
||||
"adminserviceparam.LoginWithPhoneNumberRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
@ -866,8 +898,8 @@
|
|||
"adminserviceparam.LoginWithPhoneNumberResponse": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"admin": {
|
||||
"$ref": "#/definitions/entity.Admin"
|
||||
"admin_info": {
|
||||
"$ref": "#/definitions/adminserviceparam.AdminInfo"
|
||||
},
|
||||
"tokens": {
|
||||
"$ref": "#/definitions/adminserviceparam.Tokens"
|
||||
|
|
|
@ -115,6 +115,27 @@ definitions:
|
|||
- $ref: '#/definitions/entity.KindBoxReqStatus'
|
||||
example: 1
|
||||
type: object
|
||||
adminserviceparam.AdminInfo:
|
||||
properties:
|
||||
description:
|
||||
type: string
|
||||
email:
|
||||
type: string
|
||||
first_name:
|
||||
type: string
|
||||
gender:
|
||||
$ref: '#/definitions/entity.Gender'
|
||||
id:
|
||||
type: integer
|
||||
last_name:
|
||||
type: string
|
||||
phone_number:
|
||||
type: string
|
||||
role:
|
||||
$ref: '#/definitions/entity.AdminRole'
|
||||
status:
|
||||
$ref: '#/definitions/entity.AdminStatus'
|
||||
type: object
|
||||
adminserviceparam.LoginWithPhoneNumberRequest:
|
||||
properties:
|
||||
password:
|
||||
|
@ -126,8 +147,8 @@ definitions:
|
|||
type: object
|
||||
adminserviceparam.LoginWithPhoneNumberResponse:
|
||||
properties:
|
||||
admin:
|
||||
$ref: '#/definitions/entity.Admin'
|
||||
admin_info:
|
||||
$ref: '#/definitions/adminserviceparam.AdminInfo'
|
||||
tokens:
|
||||
$ref: '#/definitions/adminserviceparam.Tokens'
|
||||
type: object
|
||||
|
|
Loading…
Reference in New Issue