Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiResp ¶
type ApiResp struct { Code string `json:"code"` Msg string `json:"msg"` Data any `json:"data,omitempty" swaggerignore:"true"` }
所有200 的接口 resp 必须为ApiResp
type GetApi ¶
GetApi
func (GetApi) ObjPing ¶
@Summary ObjPing
@Description ObjPing @Tags demo @Accept application/json @Produce application/json @Success 200 {object} ApiResp{data=types.PingResp} "success" @Failure 401 {object} ApiResp{data=string} "权限不足" @Failure 500 {object} ApiResp{} "服务器内部错误" @Router /v1/api/obj/ObjPing [GET]
func (GetApi) UriToFnName ¶
Click to show internal directories.
Click to hide internal directories.