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.
19 lines
490 B
19 lines
490 B
9 months ago
|
// 自动生成模板Organization
|
||
|
package model
|
||
|
|
||
|
import (
|
||
|
"pure-admin/global"
|
||
|
)
|
||
|
|
||
|
// 如果含有time.Time 请自行import time包
|
||
|
type Organization struct {
|
||
|
global.MG_MODEL
|
||
|
Code string `gorm:"size:50;comment:组织编码" json:"code" ` // 组织编码
|
||
|
Owner string `gorm:"size:50;comment:用户所属" json:"owner" ` // 组织所属
|
||
|
Name string `gorm:"size:50;comment:组织名称" json:"name" ` // 组织名称
|
||
|
}
|
||
|
|
||
|
func (Organization) TableName() string {
|
||
|
return "organization"
|
||
|
}
|