Files
36Wisdom/biz/model/dto/user_progress.go
T
2026-08-14 12:13:02 +08:00

30 lines
750 B
Go

package dto
type UserProgressItem struct {
Id int64 `json:"id"`
ChildId int64 `json:"child_id"`
LevelId int64 `json:"level_id"`
Stars int `json:"stars"`
Score int `json:"score"`
Perfect int `json:"perfect"`
ContentVersion int `json:"content_version"`
}
type UserProgressGetReq struct {
ChildId int64 `v:"required" json:"child_id"`
LevelId int64 `v:"required" json:"level_id"`
}
type UserProgressGetRes struct {
UserProgress UserProgressItem `json:"user_progress"`
}
type UserProgressListReq struct {
ChildId int64 `v:"required" json:"child_id"`
LevelIds []int64 `v:"required" json:"level_ids"`
}
type UserProgressListRes struct {
List []UserProgressItem `json:"list"`
}