fix(niki): update swagger

This commit is contained in:
Iman Mirazimi 2024-05-21 20:27:21 +03:30
parent 6b68385ed1
commit ee64f70466
3 changed files with 91 additions and 6 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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