2023-05-31 10:33:02 +00:00
|
|
|
syntax = "v1"
|
|
|
|
|
|
|
|
info (
|
|
|
|
title: // TODO: add title
|
|
|
|
desc: // TODO: add description
|
|
|
|
author: ""
|
|
|
|
email: ""
|
|
|
|
)
|
|
|
|
|
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-01 10:35:09 +00:00
|
|
|
|
2023-06-05 09:56:55 +00:00
|
|
|
// Auth jwt认证认证的安全参数
|
2023-06-01 10:35:09 +00:00
|
|
|
type Auth {
|
|
|
|
AccessSecret string `json:"AccessSecret"`
|
|
|
|
AccessExpire int `json:"AccessExpire"`
|
|
|
|
}
|