Documentation
¶
Index ¶
- func CreateTask(ctx *gin.Context)
- func DeleteTask(ctx *gin.Context)
- func GetTask(ctx *gin.Context)
- func GetTasks(ctx *gin.Context)
- func Login(ctx *gin.Context)
- func New(p gin.IRouter)
- func SignUp(ctx *gin.Context)
- func UpdateTask(ctx *gin.Context)
- func UpdateUser(ctx *gin.Context)
- type CreateTaskReq
- type CreateTaskRsp
- type DeleteTaskReq
- type GetTaskReq
- type GetTaskRsp
- type GetTasksReq
- type GetTasksRsp
- type LoginReq
- type LoginRsp
- type SignUpReq
- type SignUpRsp
- type Task
- type UpdateTaskReq
- type UpdateUserReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTask ¶ added in v0.10.0
func DeleteTask ¶ added in v0.10.0
func UpdateTask ¶ added in v0.10.0
func UpdateUser ¶ added in v0.10.0
Types ¶
type CreateTaskReq ¶ added in v0.10.0
type CreateTaskReq struct { Desc string `json:"desc"` Kind string `json:"kind" binding:"required"` Spec string `json:"spec" binding:"required"` // Param 不同的 kind 有不同的 param, 所以这里不对 Param 解析 Param json.RawMessage `json:"param"` }
type CreateTaskRsp ¶ added in v0.10.0
type CreateTaskRsp struct {
TaskID int64 `json:"task_id"`
}
type DeleteTaskReq ¶ added in v0.10.0
type DeleteTaskReq struct {
TaskID int64 `uri:"task_id" binding:"required"`
}
type GetTaskReq ¶ added in v0.10.0
type GetTaskReq struct {
TaskID int64 `uri:"task_id" binding:"required"`
}
type GetTaskRsp ¶ added in v0.10.0
type GetTaskRsp struct {
Task Task `json:"task"`
}
type GetTasksReq ¶ added in v0.10.0
type GetTasksRsp ¶ added in v0.10.0
type UpdateTaskReq ¶ added in v0.10.0
type UpdateTaskReq struct { TaskID int64 `uri:"task_id" binding:"required"` Desc string `json:"desc"` Spec string `json:"spec"` // Param 更新时也不要解析 Param json.RawMessage `json:"param"` }
Click to show internal directories.
Click to hide internal directories.