controllers

package
v0.0.0-...-44e9b83 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusParamError    = 10904001 //请求参数错误
	StatusDatabaseError = 10904002 // 数据库异常
	ServerError         = 10909999 //服务端异常
)

Variables

This section is empty.

Functions

func AuthRequired

func AuthRequired() gin.HandlerFunc

func DeploymentConsole

func DeploymentConsole(c *gin.Context)

func DeploymentPublish

func DeploymentPublish(c *gin.Context)

func FileUpload

func FileUpload(c *gin.Context)

func Login

func Login(c *gin.Context)

func Logout

func Logout(c *gin.Context)

func ProjectDetail

func ProjectDetail(c *gin.Context)

func ProjectLastDeployment

func ProjectLastDeployment(c *gin.Context)

func ProjectList

func ProjectList(c *gin.Context)

func ProjectRouter

func ProjectRouter(c *gin.Context)

func ProjectUpdate

func ProjectUpdate(c *gin.Context)

func ProjectValid

func ProjectValid(c *gin.Context)

func ServerList

func ServerList(c *gin.Context)

Types

type DeploymentLog

type DeploymentLog struct {
	Text   string `json:"text" form:"text"`
	Status string `json:"status" form:"status"`
}

type DeploymentPublishRequest

type DeploymentPublishRequest struct {
	ProjectId   string `json:"projectId" form:"projectId"`
	Description string `json:"description" form:"description"`
	FilePath    string `json:"filePath" form:"filePath"`
}

type FileUplodResult

type FileUplodResult struct {
	Tree     string `json:"tree" form:"tree"`
	FilePath string `json:"filePath" form:"filePath"`
}

type LoginSuccess

type LoginSuccess struct {
	// contains filtered or unexported fields
}

type Result

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

func FailWithData

func FailWithData(code int, data interface{}) *Result

func FailWithMsg

func FailWithMsg(code int, message string) *Result

func Success

func Success(data interface{}) *Result

Jump to

Keyboard shortcuts

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