feat: add user_list
This commit is contained in:
@@ -71,16 +71,16 @@ definitions:
|
||||
type: string
|
||||
status:
|
||||
$ref: '#/definitions/consts.TenantStatus'
|
||||
status_description:
|
||||
type: string
|
||||
updated_at:
|
||||
type: string
|
||||
user_balance:
|
||||
type: integer
|
||||
user_count:
|
||||
type: integer
|
||||
user_id:
|
||||
type: integer
|
||||
userBalance:
|
||||
format: int64
|
||||
type: integer
|
||||
userCount:
|
||||
format: int64
|
||||
type: integer
|
||||
users:
|
||||
items:
|
||||
$ref: '#/definitions/models.User'
|
||||
@@ -88,6 +88,52 @@ definitions:
|
||||
uuid:
|
||||
type: string
|
||||
type: object
|
||||
dto.TenantStatusUpdateForm:
|
||||
properties:
|
||||
status:
|
||||
allOf:
|
||||
- $ref: '#/definitions/consts.TenantStatus'
|
||||
enum:
|
||||
- normal
|
||||
- disabled
|
||||
required:
|
||||
- status
|
||||
type: object
|
||||
dto.UserItem:
|
||||
properties:
|
||||
created_at:
|
||||
type: string
|
||||
deleted_at:
|
||||
$ref: '#/definitions/gorm.DeletedAt'
|
||||
id:
|
||||
type: integer
|
||||
metas:
|
||||
items:
|
||||
type: integer
|
||||
type: array
|
||||
owned:
|
||||
$ref: '#/definitions/models.Tenant'
|
||||
password:
|
||||
type: string
|
||||
roles:
|
||||
items:
|
||||
$ref: '#/definitions/consts.Role'
|
||||
type: array
|
||||
status:
|
||||
$ref: '#/definitions/consts.UserStatus'
|
||||
status_description:
|
||||
type: string
|
||||
tenants:
|
||||
items:
|
||||
$ref: '#/definitions/models.Tenant'
|
||||
type: array
|
||||
updated_at:
|
||||
type: string
|
||||
username:
|
||||
type: string
|
||||
verified_at:
|
||||
type: string
|
||||
type: object
|
||||
gorm.DeletedAt:
|
||||
properties:
|
||||
time:
|
||||
@@ -168,8 +214,6 @@ definitions:
|
||||
total:
|
||||
type: integer
|
||||
type: object
|
||||
v1.ResponseItem:
|
||||
type: object
|
||||
externalDocs:
|
||||
description: OpenAPI
|
||||
url: https://swagger.io/resources/open-api/
|
||||
@@ -265,24 +309,39 @@ paths:
|
||||
summary: 更新过期时间
|
||||
tags:
|
||||
- Super
|
||||
/v1/medias/{id}:
|
||||
post:
|
||||
/super/v1/tenants/{tenantID}/status:
|
||||
patch:
|
||||
consumes:
|
||||
- application/json
|
||||
description: Test
|
||||
parameters:
|
||||
- description: ID
|
||||
- description: TenantID
|
||||
format: int64
|
||||
in: path
|
||||
name: id
|
||||
name: tenantID
|
||||
required: true
|
||||
type: integer
|
||||
- description: 年龄
|
||||
in: query
|
||||
name: age
|
||||
type: integer
|
||||
- description: 名称
|
||||
in: query
|
||||
name: name
|
||||
- description: Form
|
||||
in: body
|
||||
name: form
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.TenantStatusUpdateForm'
|
||||
produces:
|
||||
- application/json
|
||||
responses: {}
|
||||
summary: 更新租户状态
|
||||
tags:
|
||||
- Super
|
||||
/super/v1/users:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
parameters:
|
||||
- in: query
|
||||
name: asc
|
||||
type: string
|
||||
- in: query
|
||||
name: desc
|
||||
type: string
|
||||
- in: query
|
||||
name: limit
|
||||
@@ -290,21 +349,27 @@ paths:
|
||||
- in: query
|
||||
name: page
|
||||
type: integer
|
||||
- in: query
|
||||
name: tenantID
|
||||
type: integer
|
||||
- in: query
|
||||
name: username
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: 成功
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/requests.Pager'
|
||||
- properties:
|
||||
list:
|
||||
$ref: '#/definitions/v1.ResponseItem'
|
||||
items:
|
||||
$ref: '#/definitions/dto.UserItem'
|
||||
type: object
|
||||
summary: Test
|
||||
summary: 租户列表
|
||||
tags:
|
||||
- Test
|
||||
- Super
|
||||
securityDefinitions:
|
||||
BasicAuth:
|
||||
type: basic
|
||||
|
||||
Reference in New Issue
Block a user