|
|
|
@ -2,54 +2,23 @@ basePath: /
|
|
|
|
|
consumes:
|
|
|
|
|
- application/json
|
|
|
|
|
definitions:
|
|
|
|
|
BaseIDInfo:
|
|
|
|
|
description: The base ID response data | 基础ID信息
|
|
|
|
|
properties:
|
|
|
|
|
createdAt:
|
|
|
|
|
description: Create Time | 创建时间
|
|
|
|
|
type: string
|
|
|
|
|
x-go-name: CreatedAt
|
|
|
|
|
id:
|
|
|
|
|
description: Id | 序号
|
|
|
|
|
format: uint64
|
|
|
|
|
type: string
|
|
|
|
|
x-go-name: Id
|
|
|
|
|
updatedAt:
|
|
|
|
|
description: Update Time | 更新时间
|
|
|
|
|
type: string
|
|
|
|
|
x-go-name: UpdatedAt
|
|
|
|
|
type: object
|
|
|
|
|
x-go-package: git.noahlan.cn/n-admin/n-admin-server/api/internal/types
|
|
|
|
|
IDPathReq:
|
|
|
|
|
description: Basic ID request (path) | 基础ID结构,地址参数
|
|
|
|
|
properties:
|
|
|
|
|
id:
|
|
|
|
|
description: |-
|
|
|
|
|
ID | 序号
|
|
|
|
|
|
|
|
|
|
In: path
|
|
|
|
|
format: uint64
|
|
|
|
|
type: string
|
|
|
|
|
x-go-name: Id
|
|
|
|
|
type: object
|
|
|
|
|
x-go-package: git.noahlan.cn/n-admin/n-admin-server/api/internal/types
|
|
|
|
|
IDReq:
|
|
|
|
|
BaseID:
|
|
|
|
|
description: Basic ID Request | 基础ID结构
|
|
|
|
|
properties:
|
|
|
|
|
id:
|
|
|
|
|
description: Id | 序号
|
|
|
|
|
format: uint64
|
|
|
|
|
format: int64
|
|
|
|
|
type: string
|
|
|
|
|
x-go-name: Id
|
|
|
|
|
x-go-name: ID
|
|
|
|
|
type: object
|
|
|
|
|
x-go-package: git.noahlan.cn/n-admin/n-admin-server/api/internal/types
|
|
|
|
|
IDsReq:
|
|
|
|
|
BaseIDs:
|
|
|
|
|
description: Basic ID List request | 基础ID列表结构,用于Post
|
|
|
|
|
properties:
|
|
|
|
|
ids:
|
|
|
|
|
description: 主键列表
|
|
|
|
|
items:
|
|
|
|
|
format: uint64
|
|
|
|
|
format: int64
|
|
|
|
|
type: integer
|
|
|
|
|
type: array
|
|
|
|
|
x-go-name: Ids
|
|
|
|
@ -94,12 +63,107 @@ definitions:
|
|
|
|
|
x-go-name: UpdatedAt
|
|
|
|
|
type: object
|
|
|
|
|
x-go-package: git.noahlan.cn/n-admin/n-admin-server/api/internal/types
|
|
|
|
|
UserInfo:
|
|
|
|
|
properties:
|
|
|
|
|
createdAt:
|
|
|
|
|
description: Create Time | 创建时间
|
|
|
|
|
type: string
|
|
|
|
|
x-go-name: CreatedAt
|
|
|
|
|
id:
|
|
|
|
|
description: Id | 序号
|
|
|
|
|
format: int64
|
|
|
|
|
type: string
|
|
|
|
|
x-go-name: ID
|
|
|
|
|
updatedAt:
|
|
|
|
|
description: Update Time | 更新时间
|
|
|
|
|
type: string
|
|
|
|
|
x-go-name: UpdatedAt
|
|
|
|
|
type: object
|
|
|
|
|
x-go-package: git.noahlan.cn/n-admin/n-admin-server/api/internal/types
|
|
|
|
|
UserReq:
|
|
|
|
|
properties:
|
|
|
|
|
current:
|
|
|
|
|
description: Current Page | 当前页
|
|
|
|
|
example: 1
|
|
|
|
|
format: uint64
|
|
|
|
|
maximum: 100000
|
|
|
|
|
minimum: 1
|
|
|
|
|
type: integer
|
|
|
|
|
x-go-name: Current
|
|
|
|
|
id:
|
|
|
|
|
description: Id | 序号
|
|
|
|
|
format: int64
|
|
|
|
|
type: string
|
|
|
|
|
x-go-name: ID
|
|
|
|
|
size:
|
|
|
|
|
description: Page Size | 每页大小
|
|
|
|
|
example: 10
|
|
|
|
|
format: uint64
|
|
|
|
|
maximum: 9999
|
|
|
|
|
minimum: 0
|
|
|
|
|
type: integer
|
|
|
|
|
x-go-name: Size
|
|
|
|
|
total:
|
|
|
|
|
description: Total Number | 数据总数
|
|
|
|
|
format: uint64
|
|
|
|
|
type: integer
|
|
|
|
|
x-go-name: Total
|
|
|
|
|
type: object
|
|
|
|
|
x-go-package: git.noahlan.cn/n-admin/n-admin-server/api/internal/types
|
|
|
|
|
host: localhost:0
|
|
|
|
|
info:
|
|
|
|
|
description: 'Description: test service'
|
|
|
|
|
title: test
|
|
|
|
|
description: 'Description: api service'
|
|
|
|
|
title: api
|
|
|
|
|
version: 0.0.1
|
|
|
|
|
paths:
|
|
|
|
|
/api/admin/user:
|
|
|
|
|
get:
|
|
|
|
|
description: Get user | 获取用户
|
|
|
|
|
operationId: GetUserAdmin
|
|
|
|
|
parameters:
|
|
|
|
|
- in: body
|
|
|
|
|
name: body
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/UserReq'
|
|
|
|
|
type: object
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: UserInfo
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/UserInfo'
|
|
|
|
|
summary: Get user | 获取用户
|
|
|
|
|
tags:
|
|
|
|
|
- user_admin
|
|
|
|
|
post:
|
|
|
|
|
description: Delete user | 删除用户
|
|
|
|
|
operationId: DeleteUserAdmin
|
|
|
|
|
parameters:
|
|
|
|
|
- in: body
|
|
|
|
|
name: body
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/BaseID'
|
|
|
|
|
type: object
|
|
|
|
|
summary: Delete user | 删除用户
|
|
|
|
|
tags:
|
|
|
|
|
- user_admin
|
|
|
|
|
/api/admin/user/create:
|
|
|
|
|
post:
|
|
|
|
|
description: Create user | 创建用户
|
|
|
|
|
operationId: CreateUserAdmin
|
|
|
|
|
parameters:
|
|
|
|
|
- in: body
|
|
|
|
|
name: body
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/UserInfo'
|
|
|
|
|
type: object
|
|
|
|
|
responses:
|
|
|
|
|
"200":
|
|
|
|
|
description: BaseID
|
|
|
|
|
schema:
|
|
|
|
|
$ref: '#/definitions/BaseID'
|
|
|
|
|
summary: Create user | 创建用户
|
|
|
|
|
tags:
|
|
|
|
|
- user_admin
|
|
|
|
|
/api/base/initDatabase:
|
|
|
|
|
get:
|
|
|
|
|
description: Initialize database | 初始化数据库
|
|
|
|
|