Files
novatask/internal/types/types.go
2024-12-11 21:15:59 +08:00

41 lines
951 B
Go

// Code generated by goctl. DO NOT EDIT.
// goctl 1.7.3
package types
type GetTaskListReq struct {
CommunityId uint `form:"community_id"`
}
type GetTaskListResp struct {
Tasks []Task `json:"tasks"`
}
type GetTaskRewardResp struct {
Points int `json:"points"`
}
type Task struct {
Id uint `json:"id"`
CommunityId uint `json:"community_id"`
Title string `json:"title"`
SubTitle string `json:"sub_title"`
Description string `json:"description"`
Points int `json:"points"`
ButtonText string `json:"button_text"`
Type int8 `json:"type"`
Url string `json:"url"`
Status int8 `json:"status"`
StartAt string `json:"start_at"`
EndAt string `json:"end_at"`
FinishState int8 `json:"finish_state"` // 0:未完成 1:待校验 2:已完成未领取 3:已领取
}
type TaskIdPath struct {
ID uint `path:"id"`
}
type VerifyTaskResultResp struct {
Finish bool `json:"finish"`
}