fusenapi/server_api/basic.api
2023-06-12 18:08:34 +08:00

36 lines
673 B
Plaintext

syntax = "v1"
info (
title: // TODO: add title
desc: // TODO: add description
author: ""
email: ""
)
// response 统一返回码
type response {
Code int `json:"code"`
Message string `json:"msg"`
Data interface{} `json:"data"`
}
// responseJwt 统一返回码
type responseJwt {
Code int `json:"code"`
Message string `json:"msg"`
Data interface{} `json:"data"`
AccessSecret string `json:"accessSecret"`
AccessExpire int64 `json:"accessExpire"`
}
// Auth 认证结构
type Auth {
AccessSecret string `json:"accessSecret"`
AccessExpire int64 `json:"accessExpire"`
RefreshAfter int64 `json:"refreshAfter"`
}