You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
586 B

package application
import "github.com/golangkit/formatime"
type IOSVersion struct {
ID uint `gorm:"column:id;primary_key" json:"-"`
Version string `gorm:"column:version" json:"version"`
Build uint `gorm:"column:build" json:"build"`
Desc string `gorm:"column:desc" json:"desc"`
CreatedAt formatime.Second `gorm:"column:created_at" json:"createdAt"`
}
func (r *IOSVersion) TableName() string {
return "recook_app_ios_version"
}
type Version interface {
Do() uint
}
func (r *IOSVersion) Do() uint {
return r.ID
}