app.go 767 B

123456789101112131415161718192021222324
  1. package model
  2. // App represents App info.
  3. type App struct {
  4. AppID int64 `json:"appid" gorm:"column:appid"`
  5. AppName string `json:"app_name" gorm:"column:app_name"`
  6. AppKey string `json:"appkey" gorm:"column:appkey"`
  7. AppSecret string `json:"app_secret" gorm:"column:app_secret"`
  8. Enabled int64 `json:"enabled" gorm:"column:enabled" default:"1"`
  9. }
  10. // AppListParams represents SearchAppParams info.
  11. type AppListParams struct {
  12. AppKey string `form:"sappkey"`
  13. AppName string `form:"app_name"`
  14. PS int64 `form:"ps" default:"10"`
  15. PN int64 `form:"pn" default:"1"`
  16. }
  17. // AppParams .
  18. type AppParams struct {
  19. AppID int64 `json:"appid" form:"appid" validate:"required"`
  20. AppName string `json:"app_name" form:"app_name" validate:"required"`
  21. }