初始化项目
This commit is contained in:
33
internal/types/types.go
Normal file
33
internal/types/types.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user