org_club_user.go 521 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 OrgClubUser struct {
    models.Model
    
    UserId string `json:"userId" gorm:"type:bigint(20);comment:UserId"` 
    ClubId string `json:"clubId" gorm:"type:bigint(20);comment:ClubId"` 
    models.ModelTime
    models.ControlBy
}

func (OrgClubUser) TableName() string {
    return "org_club_user"
}

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

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