feat:完善项目信息
This commit is contained in:
30
app/common/model/sys_agreement.go
Normal file
30
app/common/model/sys_agreement.go
Normal file
@ -0,0 +1,30 @@
|
||||
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{}
|
||||
}
|
Reference in New Issue
Block a user