You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
3.7 KiB
YAML

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:
description: Basic ID Request | 基础ID结构
properties:
id:
description: Id | 序号
format: uint64
type: string
x-go-name: Id
type: object
x-go-package: git.noahlan.cn/n-admin/n-admin-server/api/internal/types
IDsReq:
description: Basic ID List request | 基础ID列表结构用于Post
properties:
ids:
description: 主键列表
items:
format: uint64
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
host: localhost:0
info:
description: 'Description: test service'
title: test
version: 0.0.1
paths:
/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"