初始化项目

This commit is contained in:
lianghuanjie
2024-12-05 20:51:35 +08:00
commit e2ba6924b8
30 changed files with 1560 additions and 0 deletions

33
internal/types/types.go Normal file
View File

@@ -0,0 +1,33 @@
// 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 GetTaskRewardReq struct {
ID uint `path:"id"`
}
type GetTaskRewardResp struct {
Points int `json:"points"`
}
type Task struct {
Id uint `json:"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"`
StartAt string `json:"start_at"`
EndAt string `json:"end_at"`
Status int8 `json:"status"`
}