Documentation
¶
Overview ¶
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Copyright 2019 Axetroy. All rights reserved. MIT license.
Index ¶
- func Create(context controller.Context, input CreateParams) (res schema.Response)
- func CreateRouter(context *gin.Context)
- func DeleteReportById(id string)
- func GetList(context controller.Context, input Query) (res schema.List)
- func GetListByAdmin(context controller.Context, input QueryAdmin) (res schema.List)
- func GetListByAdminRouter(context *gin.Context)
- func GetListRouter(context *gin.Context)
- func GetReportByAdmin(context controller.Context, id string) (res schema.Response)
- func GetReportByAdminRouter(context *gin.Context)
- func GetReportByUser(context controller.Context, id string) (res schema.Response)
- func GetReportRouter(context *gin.Context)
- func Update(context controller.Context, reportId string, input UpdateParams) (res schema.Response)
- func UpdateByAdmin(context controller.Context, reportId string, input UpdateByAdminParams) (res schema.Response)
- func UpdateByAdminRouter(context *gin.Context)
- func UpdateRouter(context *gin.Context)
- type CreateParams
- type Query
- type QueryAdmin
- type UpdateByAdminParams
- type UpdateParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(context controller.Context, input CreateParams) (res schema.Response)
func CreateRouter ¶
func DeleteReportById ¶
func DeleteReportById(id string)
func GetListByAdmin ¶
func GetListByAdmin(context controller.Context, input QueryAdmin) (res schema.List)
func GetListByAdminRouter ¶
func GetListRouter ¶
func GetReportByAdmin ¶
func GetReportByAdmin(context controller.Context, id string) (res schema.Response)
func GetReportByAdminRouter ¶
func GetReportByUser ¶
func GetReportByUser(context controller.Context, id string) (res schema.Response)
func GetReportRouter ¶
func Update ¶
func Update(context controller.Context, reportId string, input UpdateParams) (res schema.Response)
func UpdateByAdmin ¶
func UpdateByAdmin(context controller.Context, reportId string, input UpdateByAdminParams) (res schema.Response)
func UpdateByAdminRouter ¶
func UpdateRouter ¶
Types ¶
type CreateParams ¶
type CreateParams struct {
Title string `json:"title" valid:"required~请填写标题"` // 标题
Content string `json:"content" valid:"required~请填写反馈内容"` // 内容
Type model.ReportType `json:"type" valid:"required~请填写反馈类型"` // 反馈类型
Screenshots []string `json:"screenshots"` // 截图
}
type Query ¶
type Query struct {
schema.Query
Type *model.ReportType `json:"type" form:"type"` // 类型
Status *model.ReportStatus `json:"status" form:"status"` // 状态
}
type QueryAdmin ¶
type UpdateByAdminParams ¶
type UpdateByAdminParams struct {
UpdateParams
Locked *bool `json:"locked"` // 是否锁定
}
type UpdateParams ¶
type UpdateParams struct {
Status *model.ReportStatus `json:"status" valid:"required~请选择要标记的状态"`
}
Click to show internal directories.
Click to hide internal directories.