settings section
This commit is contained in:
1387
docs/docs.go
Normal file
1387
docs/docs.go
Normal file
File diff suppressed because it is too large
Load Diff
1358
docs/swagger.json
Normal file
1358
docs/swagger.json
Normal file
File diff suppressed because it is too large
Load Diff
871
docs/swagger.yaml
Normal file
871
docs/swagger.yaml
Normal file
@@ -0,0 +1,871 @@
|
||||
definitions:
|
||||
appresult.AppError:
|
||||
properties:
|
||||
code:
|
||||
type: string
|
||||
message:
|
||||
type: string
|
||||
status:
|
||||
type: boolean
|
||||
type: object
|
||||
appresult.AppSuccess:
|
||||
properties:
|
||||
code:
|
||||
type: string
|
||||
data: {}
|
||||
message:
|
||||
type: string
|
||||
status:
|
||||
type: boolean
|
||||
type: object
|
||||
auth.LoginDTO:
|
||||
properties:
|
||||
login:
|
||||
type: string
|
||||
password:
|
||||
type: string
|
||||
required:
|
||||
- login
|
||||
- password
|
||||
type: object
|
||||
auth.TokenReqBody:
|
||||
properties:
|
||||
refreshToken:
|
||||
type: string
|
||||
required:
|
||||
- refreshToken
|
||||
type: object
|
||||
branches.CreateBranchDTO:
|
||||
properties:
|
||||
address:
|
||||
$ref: '#/definitions/branches.LocalizedText'
|
||||
billingLogin:
|
||||
type: string
|
||||
billingPassword:
|
||||
type: string
|
||||
billingPasswordSber:
|
||||
type: string
|
||||
billingPasswordVisa:
|
||||
type: string
|
||||
billingUsernameSber:
|
||||
type: string
|
||||
billingUsernameVisa:
|
||||
type: string
|
||||
locationId:
|
||||
type: integer
|
||||
provinceId:
|
||||
type: integer
|
||||
title:
|
||||
$ref: '#/definitions/branches.LocalizedText'
|
||||
unikalNomer:
|
||||
type: string
|
||||
required:
|
||||
- address
|
||||
- locationId
|
||||
- provinceId
|
||||
- title
|
||||
- unikalNomer
|
||||
type: object
|
||||
branches.LocalizedText:
|
||||
properties:
|
||||
en:
|
||||
type: string
|
||||
ru:
|
||||
type: string
|
||||
tm:
|
||||
type: string
|
||||
type: object
|
||||
branches.UpdateBranchDTO:
|
||||
properties:
|
||||
address:
|
||||
$ref: '#/definitions/branches.LocalizedText'
|
||||
billingLogin:
|
||||
type: string
|
||||
billingPassword:
|
||||
type: string
|
||||
billingPasswordSber:
|
||||
type: string
|
||||
billingPasswordVisa:
|
||||
type: string
|
||||
billingUsernameSber:
|
||||
type: string
|
||||
billingUsernameVisa:
|
||||
type: string
|
||||
locationId:
|
||||
type: integer
|
||||
provinceId:
|
||||
type: integer
|
||||
title:
|
||||
$ref: '#/definitions/branches.LocalizedText'
|
||||
unikalNomer:
|
||||
type: string
|
||||
required:
|
||||
- address
|
||||
- locationId
|
||||
- provinceId
|
||||
- title
|
||||
- unikalNomer
|
||||
type: object
|
||||
location.CreateLocationDTO:
|
||||
properties:
|
||||
provinceId:
|
||||
type: integer
|
||||
status:
|
||||
type: boolean
|
||||
title:
|
||||
$ref: '#/definitions/location.LocalizedTitle'
|
||||
required:
|
||||
- provinceId
|
||||
- title
|
||||
type: object
|
||||
location.LocalizedTitle:
|
||||
properties:
|
||||
en:
|
||||
type: string
|
||||
ru:
|
||||
type: string
|
||||
tm:
|
||||
type: string
|
||||
type: object
|
||||
location.UpdateLocationDTO:
|
||||
properties:
|
||||
provinceId:
|
||||
type: integer
|
||||
status:
|
||||
type: boolean
|
||||
title:
|
||||
$ref: '#/definitions/location.LocalizedTitle'
|
||||
required:
|
||||
- provinceId
|
||||
- title
|
||||
type: object
|
||||
location.UpdateLocationStatusDTO:
|
||||
properties:
|
||||
status:
|
||||
type: boolean
|
||||
type: object
|
||||
province.CreateProvinceDTO:
|
||||
properties:
|
||||
title:
|
||||
$ref: '#/definitions/province.LocalizedTitle'
|
||||
required:
|
||||
- title
|
||||
type: object
|
||||
province.LocalizedTitle:
|
||||
properties:
|
||||
en:
|
||||
type: string
|
||||
ru:
|
||||
type: string
|
||||
tm:
|
||||
type: string
|
||||
type: object
|
||||
province.UpdateProvinceDTO:
|
||||
properties:
|
||||
title:
|
||||
$ref: '#/definitions/province.LocalizedTitle'
|
||||
required:
|
||||
- title
|
||||
type: object
|
||||
info:
|
||||
contact: {}
|
||||
paths:
|
||||
/branches:
|
||||
get:
|
||||
description: Returns paginated branches with optional filters
|
||||
parameters:
|
||||
- description: Filter by province ID
|
||||
in: query
|
||||
name: province_id
|
||||
type: integer
|
||||
- description: Filter by location ID
|
||||
in: query
|
||||
name: location_id
|
||||
type: integer
|
||||
- description: Filter by province name (en, ru, tm)
|
||||
in: query
|
||||
name: province_name
|
||||
type: string
|
||||
- description: Filter by branch name (en, ru, tm)
|
||||
in: query
|
||||
name: branch_name
|
||||
type: string
|
||||
- description: Filter by unique number
|
||||
in: query
|
||||
name: unikal_nomer
|
||||
type: string
|
||||
- default: 1
|
||||
description: Page number
|
||||
in: query
|
||||
name: page
|
||||
type: integer
|
||||
- default: 10
|
||||
description: Items per page
|
||||
in: query
|
||||
name: limit
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: List branches
|
||||
tags:
|
||||
- branches
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Creates a new branch
|
||||
parameters:
|
||||
- description: Branch payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/branches.CreateBranchDTO'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"201":
|
||||
description: Created
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Create branch
|
||||
tags:
|
||||
- branches
|
||||
/branches/{id}:
|
||||
delete:
|
||||
description: Deletes a branch
|
||||
parameters:
|
||||
- description: Branch ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Delete branch
|
||||
tags:
|
||||
- branches
|
||||
get:
|
||||
description: Returns a single branch
|
||||
parameters:
|
||||
- description: Branch ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Get branch by ID
|
||||
tags:
|
||||
- branches
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Updates an existing branch
|
||||
parameters:
|
||||
- description: Branch ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: Branch payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/branches.UpdateBranchDTO'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Update branch
|
||||
tags:
|
||||
- branches
|
||||
/file:
|
||||
post:
|
||||
consumes:
|
||||
- multipart/form-data
|
||||
description: file upload
|
||||
parameters:
|
||||
- description: upload file
|
||||
in: formData
|
||||
name: file
|
||||
required: true
|
||||
type: file
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
tags:
|
||||
- file-upload
|
||||
/file/{id}:
|
||||
delete:
|
||||
consumes:
|
||||
- application/json
|
||||
description: remove file
|
||||
parameters:
|
||||
- description: file name
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
tags:
|
||||
- file-upload
|
||||
/get-profile:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: profile data for Admin
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
tags:
|
||||
- admin
|
||||
/locations:
|
||||
get:
|
||||
description: Returns paginated locations with optional filters
|
||||
parameters:
|
||||
- description: Filter by province ID
|
||||
in: query
|
||||
name: province_id
|
||||
type: integer
|
||||
- description: Filter by province name (en, ru, tm)
|
||||
in: query
|
||||
name: province_name
|
||||
type: string
|
||||
- description: Filter by location name (en, ru, tm)
|
||||
in: query
|
||||
name: location_name
|
||||
type: string
|
||||
- description: Filter by location status
|
||||
in: query
|
||||
name: status
|
||||
type: boolean
|
||||
- default: 1
|
||||
description: Page number
|
||||
in: query
|
||||
name: page
|
||||
type: integer
|
||||
- default: 10
|
||||
description: Items per page
|
||||
in: query
|
||||
name: limit
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: List locations
|
||||
tags:
|
||||
- location
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Creates a new location in a province
|
||||
parameters:
|
||||
- description: Location payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/location.CreateLocationDTO'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"201":
|
||||
description: Created
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Create location
|
||||
tags:
|
||||
- location
|
||||
/locations/{id}:
|
||||
delete:
|
||||
description: Deletes a location
|
||||
parameters:
|
||||
- description: Location ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Delete location
|
||||
tags:
|
||||
- location
|
||||
get:
|
||||
description: Returns a single location
|
||||
parameters:
|
||||
- description: Location ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Get location by ID
|
||||
tags:
|
||||
- location
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Updates an existing location
|
||||
parameters:
|
||||
- description: Location ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: Location payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/location.UpdateLocationDTO'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Update location
|
||||
tags:
|
||||
- location
|
||||
/locations/{id}/status:
|
||||
patch:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Enables or disables a location
|
||||
parameters:
|
||||
- description: Location ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: Status payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/location.UpdateLocationStatusDTO'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Update location status
|
||||
tags:
|
||||
- location
|
||||
/login:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: login for Admin
|
||||
parameters:
|
||||
- description: Login JSON
|
||||
in: body
|
||||
name: auth
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/auth.LoginDTO'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
tags:
|
||||
- auth
|
||||
/provinces:
|
||||
get:
|
||||
description: Returns all provinces
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: List provinces
|
||||
tags:
|
||||
- province
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Creates a new province
|
||||
parameters:
|
||||
- description: Province payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/province.CreateProvinceDTO'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"201":
|
||||
description: Created
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Create province
|
||||
tags:
|
||||
- province
|
||||
/provinces/{id}:
|
||||
delete:
|
||||
description: Deletes a province and its locations
|
||||
parameters:
|
||||
- description: Province ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Delete province
|
||||
tags:
|
||||
- province
|
||||
get:
|
||||
description: Returns a single province
|
||||
parameters:
|
||||
- description: Province ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Get province by ID
|
||||
tags:
|
||||
- province
|
||||
put:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Updates an existing province
|
||||
parameters:
|
||||
- description: Province ID
|
||||
in: path
|
||||
name: id
|
||||
required: true
|
||||
type: integer
|
||||
- description: Province payload
|
||||
in: body
|
||||
name: body
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/province.UpdateProvinceDTO'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
summary: Update province
|
||||
tags:
|
||||
- province
|
||||
/token:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: refresh admin tokens
|
||||
parameters:
|
||||
- description: Token JSON
|
||||
in: body
|
||||
name: auth
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/auth.TokenReqBody'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppSuccess'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/appresult.AppError'
|
||||
tags:
|
||||
- auth
|
||||
swagger: "2.0"
|
||||
Reference in New Issue
Block a user