| 1234567891011121314151617181920212223 |
- package v1
- import (
- "github.com/gogf/gf/v2/frame/g"
- )
- type RandListReq struct {
- g.Meta `path:"words/rand" method:"get" sm:"随机获取单词列表" tags:"单词"`
- Limit uint `json:"limit" v:"between:1,300" dc:"限制个数,默认50"`
- }
- type RandListRes struct {
- List []List `json:"list"`
- }
- type SetLevelReq struct {
- g.Meta `path:"words/{id}/level" method:"patch"`
- Id uint `json:"id" v:"required"`
- Level ProficiencyLevel `json:"level" v:"required|between:1,5"`
- }
-
- type SetLevelRes struct {
- }
|