1234567891011121314151617181920212223 |
- package models
- import (
- model2 "Medical_ERP/common/model"
- )
- // 生产企业
- type Enterprise struct {
- model2.Model
- Name string `gorm:"size:128" json:"name"` //生产企业名称
- Sort int `gorm:"size:4" json:"-" swaggerignore:"true"` //生产企业排序
- Remark string `gorm:"size:255" json:"-" swaggerignore:"true"` //描述
- model2.ControlBy
- model2.ModelTime
- }
- func (e *Enterprise) TableName() string {
- return "enterprise"
- }
- func (e *Enterprise) GetId() interface{} {
- return e.Id
- }
|