go-common/app/admin/main/open/model/app.go

25 lines
767 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package model
// App represents App info.
type App struct {
AppID int64 `json:"appid" gorm:"column:appid"`
AppName string `json:"app_name" gorm:"column:app_name"`
AppKey string `json:"appkey" gorm:"column:appkey"`
AppSecret string `json:"app_secret" gorm:"column:app_secret"`
Enabled int64 `json:"enabled" gorm:"column:enabled" default:"1"`
}
// AppListParams represents SearchAppParams info.
type AppListParams struct {
AppKey string `form:"sappkey"`
AppName string `form:"app_name"`
PS int64 `form:"ps" default:"10"`
PN int64 `form:"pn" default:"1"`
}
// AppParams .
type AppParams struct {
AppID int64 `json:"appid" form:"appid" validate:"required"`
AppName string `json:"app_name" form:"app_name" validate:"required"`
}