org_team.go 516 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 OrgTeam struct {
    models.Model
    
    ClubId string `json:"clubId" gorm:"type:int(11);comment:org_club表id"` 
    TeamName string `json:"teamName" gorm:"type:varchar(255);comment:球队名称"` 
    models.ModelTime
    models.ControlBy
}

func (OrgTeam) TableName() string {
    return "org_team"
}

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

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