fusenapi/server_api/basic.api

35 lines
671 B
Plaintext
Raw Normal View History

2023-05-31 18:33:02 +08:00
syntax = "v1"
info (
title: // TODO: add title
desc: // TODO: add description
author: ""
email: ""
)
2023-06-05 17:56:55 +08:00
// response 统一返回码
2023-05-31 18:33:02 +08:00
type response {
Code int `json:"code"`
Message string `json:"msg"`
Data interface{} `json:"data"`
}
2023-06-06 20:08:32 +08:00
// 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"`
2023-06-08 10:51:56 +08:00
}