basePath: / consumes: - application/json definitions: BaseID: description: Basic ID Request | 基础ID结构 properties: id: description: Id | 序号 format: int64 type: string x-go-name: ID type: object x-go-package: git.noahlan.cn/n-admin/n-admin-server/api/internal/types BaseIDs: description: Basic ID List request | 基础ID列表结构,用于Post properties: ids: description: 主键列表 items: format: int64 type: integer type: array x-go-name: Ids type: object x-go-package: git.noahlan.cn/n-admin/n-admin-server/api/internal/types Pagination: description: Pagination | 分页模型 properties: current: description: Current Page | 当前页 example: 1 format: uint64 maximum: 100000 minimum: 1 type: integer x-go-name: Current 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 TimeInfo: description: TimeInfo | 时间结构 properties: createdAt: description: Create Time | 创建时间 type: string x-go-name: CreatedAt 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 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: 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 | 初始化数据库 operationId: InitDatabase summary: Initialize database | 初始化数据库 tags: - base produces: - application/json schemes: - http - https security: - Token: - '[]' securityDefinitions: Token: in: header name: Authorization type: apiKey swagger: "2.0"