You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
524 B

package task
import "gorm.io/gorm"
// TaskHandler 结构体
type TaskHandler struct {
db *gorm.DB
}
func NewTaskHandler(db *gorm.DB) *TaskHandler {
return &TaskHandler{db: db}
}
// TaskResponse 任务列表响应结构体
type TaskResponse struct {
// ... 复制原有字段 ...
}
// TaskDetailResponse 任务详情响应结构体
type TaskDetailResponse struct {
// ... 复制原有字段 ...
}
// TaskCommentResponse 任务评论响应结构体
type TaskCommentResponse struct {
// ... 复制原有字段 ...
}