org_league.go 550 Bytes
Newer Older
haoyanbin's avatar
1  
haoyanbin committed
1 2 3 4 5 6 7 8 9 10 11 12
package models

import (
   // "gorm.io/gorm"

	"go-admin/common/models"
)

type OrgLeague struct {
    models.Model
    
    LeagueName string `json:"leagueName" gorm:"type:varchar(255);comment:联赛级别"` 
haoyanbin's avatar
1  
haoyanbin committed
13
    Status string `json:"status" gorm:"type:bigint(20);comment:联赛开启状态 1 是 0 否"` 
haoyanbin's avatar
1  
haoyanbin committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
    models.ModelTime
    models.ControlBy
}

func (OrgLeague) TableName() string {
    return "org_league"
}

func (e *OrgLeague) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *OrgLeague) GetId() interface{} {
	return e.Id
}