words_learn.go 545 B

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