36 lines
624 B
Plaintext
36 lines
624 B
Plaintext
syntax = "v1"
|
|
|
|
info (
|
|
title: // TODO: add title
|
|
desc: // TODO: add description
|
|
author: ""
|
|
email: ""
|
|
)
|
|
|
|
type request {}
|
|
|
|
|
|
|
|
// response 统一返回码
|
|
type response {
|
|
Code int `json:"code"`
|
|
Message string `json:"msg"`
|
|
Data interface{} `json:"data"`
|
|
}
|
|
|
|
// Auth 认证结构
|
|
type Auth {
|
|
AccessSecret string `json:"accessSecret"`
|
|
AccessExpire int64 `json:"accessExpire"`
|
|
RefreshAfter int64 `json:"refreshAfter"`
|
|
}
|
|
|
|
// 统一分页
|
|
type Pagnation{
|
|
TotalCount int64 `json:"total_count"`
|
|
TotalPage int64 `json:"total_page"`
|
|
CurPage int64 `json:"cur_page"`
|
|
PageSize int64 `json:"page_size"`
|
|
}
|
|
|