handler

package
v0.0.0-...-57ed434 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2023 License: AGPL-3.0 Imports: 38 Imported by: 0

Documentation

Index

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 Fail

func Fail(c *gin.Context, err errs.SystemErrorInfo)

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 GraphqlHandler

func GraphqlHandler() gin.HandlerFunc

Defining the Graphql handler

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 PlaygroundHandler

func PlaygroundHandler() gin.HandlerFunc

Defining the Playground handler

func RestHandler

func RestHandler() gin.HandlerFunc

func Success

func Success(c *gin.Context, data interface{})

func SuccessJson

func SuccessJson(c *gin.Context, data string)

Types

type CaptchaResp

type CaptchaResp struct {
	Code    int32           `json:"code"`
	Message string          `json:"message"`
	Data    CaptchaResponse `json:"data"`
}

type CaptchaResponse

type CaptchaResponse struct {
	CaptchaId string `json:"captchaId"` //验证码Id
	ImageUrl  string `json:"imageUrl"`  //验证码图片url
}

type FileList

type FileList struct {
	Url      string `json:"url"`
	Size     string `json:"size"`
	SourceId int64  `json:"sourceId"`
	FileName string `json:"fileName"`
	DistPath string `json:"distPath"`
}

type RedisCache

type RedisCache struct {
}

func (*RedisCache) Get

func (s *RedisCache) Get(id string, clear bool) (digits []byte)

func (*RedisCache) Set

func (s *RedisCache) Set(id string, digits []byte)

type Res

type Res struct {
	Code    int32       `json:"code"`
	Message string      `json:"message"`
	Success bool        `json:"success"`
	Data    interface{} `json:"data,omitempty"`
}

type Result

type Result struct {
	Code    int32      `json:"code"`
	Message string     `json:"message"`
	Data    UploadResp `json:"data"`
}

type UploadResp

type UploadResp struct {
	FileList map[string]FileList `json:"fileList"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL