Documentation ¶
Index ¶
- Constants
- Variables
- func CaptchaGetHandler() gin.HandlerFunc
- func CaptchaShowHandler() gin.HandlerFunc
- func DingTalkCallBackHandler() gin.HandlerFunc
- func Fail(c *gin.Context, err errs.SystemErrorInfo)
- func FileReadHandler() gin.HandlerFunc
- func FileUploadAndUpdateResourceInfoHandler() gin.HandlerFunc
- func FileUploadHandler() gin.HandlerFunc
- func GetCacheUserInfo(c *gin.Context) (*bo.CacheUserInfoBo, errs.SystemErrorInfo)
- func GetOfficeConfigHandler() gin.HandlerFunc
- func GraphqlHandler() gin.HandlerFunc
- func HeartbeatHandler() gin.HandlerFunc
- func ImportDataHandler() gin.HandlerFunc
- func PlaygroundHandler() gin.HandlerFunc
- func RestHandler() gin.HandlerFunc
- func Success(c *gin.Context, data interface{})
- func SuccessJson(c *gin.Context, data string)
- type CaptchaResp
- type CaptchaResponse
- type FileList
- type RedisCache
- type Res
- type Result
- type UploadResp
Constants ¶
View Source
const ( // OK ok OK int32 = 0 // RequestErr request error RequestErr int32 = -400 // ServerErr server error ServerErr int32 = -500 )
View Source
const DIR = "/"
View Source
const PATH = "resource"
View Source
const POS = "."
Variables ¶
View Source
var CommonHandler = &commonHandler{}
View Source
var IssueListHandler issueListHandler
View Source
var IssueViewHandles issueViewHandlers
View Source
var TodoHandler todoHandler
Functions ¶
func CaptchaGetHandler ¶
func CaptchaGetHandler() gin.HandlerFunc
func CaptchaShowHandler ¶
func CaptchaShowHandler() gin.HandlerFunc
func DingTalkCallBackHandler ¶
func DingTalkCallBackHandler() gin.HandlerFunc
func FileReadHandler ¶
func FileReadHandler() gin.HandlerFunc
func FileUploadAndUpdateResourceInfoHandler ¶
func FileUploadAndUpdateResourceInfoHandler() gin.HandlerFunc
func FileUploadHandler ¶
func FileUploadHandler() gin.HandlerFunc
func GetCacheUserInfo ¶
func GetCacheUserInfo(c *gin.Context) (*bo.CacheUserInfoBo, errs.SystemErrorInfo)
从上下文中获取缓存数据
func GetOfficeConfigHandler ¶
func GetOfficeConfigHandler() gin.HandlerFunc
func HeartbeatHandler ¶
func HeartbeatHandler() gin.HandlerFunc
func ImportDataHandler ¶
func ImportDataHandler() gin.HandlerFunc
@Security PM-TOEKN @Summary 任务导入 @Description 任务导入 @Tags 任务 @accept application/json @Produce application/json @Success 200 {object} int64 @Failure 400 @Router /api/task/importData [post]
func RestHandler ¶
func RestHandler() gin.HandlerFunc
func SuccessJson ¶
Types ¶
type CaptchaResp ¶
type CaptchaResp struct { Code int32 `json:"code"` Message string `json:"message"` Data CaptchaResponse `json:"data"` }
type CaptchaResponse ¶
type RedisCache ¶
type RedisCache struct { }
func (*RedisCache) Set ¶
func (s *RedisCache) Set(id string, digits []byte)
type Result ¶
type Result struct { Code int32 `json:"code"` Message string `json:"message"` Data UploadResp `json:"data"` }
type UploadResp ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.