fusenapi/server_api/basic.api

43 lines
809 B
Plaintext
Raw Normal View History

2023-05-31 10:33:02 +00:00
syntax = "v1"
info (
title: // TODO: add title
desc: // TODO: add description
author: ""
email: ""
)
2023-06-21 08:39:55 +00:00
type request {}
2023-06-12 10:08:34 +00:00
2023-06-05 09:56:55 +00:00
// response 统一返回码
2023-05-31 10:33:02 +00:00
type response {
Code int `json:"code"`
Message string `json:"msg"`
Data interface{} `json:"data"`
}
2023-06-06 12:08:32 +00:00
// Auth 认证结构
type Auth {
AccessSecret string `json:"accessSecret"`
AccessExpire int64 `json:"accessExpire"`
RefreshAfter int64 `json:"refreshAfter"`
2023-06-08 02:51:56 +00:00
}
// File 文件
2023-07-12 06:11:04 +00:00
type File {
Filename string `fsfile:"filename"`
Header map[string][]string `fsfile:"header"`
Size int64 `fsfile:"size"`
Data []byte `fsfile:"data"`
}
2023-06-27 09:04:58 +00:00
// 统一分页
2023-06-29 03:38:38 +00:00
type Meta struct {
TotalCount int64 `json:"totalCount"`
PageCount int64 `json:"pageCount"`
CurrentPage int `json:"currentPage"`
PerPage int `json:"perPage"`
}