31 lines
837 B
Go
31 lines
837 B
Go
package model
|
|
|
|
// SysAgreement 协议数据模型
|
|
type SysAgreement struct {
|
|
Model
|
|
ModelTenant
|
|
Title string `gorm:"column:title;type:varchar(50);default:'';comment:协议名称" json:"title"`
|
|
Content string `gorm:"column:content;type:varchar(255);default:'';comment:协议内容" json:"content"`
|
|
Status SysAgreementStatus `gorm:"column:status;type:tinyint(1);default:0;comment:状态" json:"status"`
|
|
ModelDeleted
|
|
ModelAt
|
|
}
|
|
|
|
// SysAgreementStatus 协议数据状态
|
|
type SysAgreementStatus int
|
|
|
|
const (
|
|
// SysAgreementStatusForShow 显示
|
|
SysAgreementStatusForShow SysAgreementStatus = iota + 1
|
|
// SysAgreementStatusForHidden 隐藏
|
|
SysAgreementStatusForHidden
|
|
)
|
|
|
|
func (m *SysAgreement) TableName() string {
|
|
return "sys_agreement"
|
|
}
|
|
|
|
func NewSysAgreement() *SysAgreement {
|
|
return &SysAgreement{}
|
|
}
|