org_league.go 547 Bytes
Newer Older
haoyanbin's avatar
1  
haoyanbin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
package models

import (
   // "gorm.io/gorm"

	"go-admin/common/models"
)

type OrgLeague struct {
    models.Model
    
    LeagueName string `json:"leagueName" gorm:"type:varchar(255);comment:联赛级别"` 
    Status string `json:"status" gorm:"type:int(11);comment:联赛开启状态 1 是 0 否"` 
    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
}