Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDaoGeneralRule ¶
func NewDaoGeneralRule() *generaldao.BaseDao[int64, *GeneralRule]
Types ¶
type GeneralRule ¶
type GeneralRule struct {
basedto.BaseEntity `gorm:"-"`
Id int64 `json:"id,string" gorm:"column:id;AUTO_INCREMENT;comment:''"`
CreatedBy int64 `json:"created_by,string" gorm:"column:created_by;type:bigint(20);comment:'创建者';default:-1"`
Rule string `json:"rule" gorm:"column:rule;type:mediumtext;comment:''"`
Result string `json:"result" gorm:"column:result;type:mediumtext;comment:''"`
Param string `json:"param" gorm:"column:param;type:mediumtext;comment:''"`
FuncType string `json:"func_type" gorm:"column:func_type;type:varchar(255);comment:''"`
FuncName string `json:"func_name" gorm:"column:func_name;type:varchar(255);comment:''"`
FuncId string `json:"func_id" gorm:"column:func_id;type:varchar(255);comment:''"`
Domain string `json:"domain" gorm:"column:domain;type:varchar(255);comment:''"`
Description string `json:"description" gorm:"column:description;type:varchar(255);comment:''"`
CreatedAt time.Time `json:"created_at" gorm:"column:created_at;type:datetime;comment:''"`
}
func NewGeneralRule ¶
func NewGeneralRule() *GeneralRule
func (*GeneralRule) AutoMigrate ¶
func (self *GeneralRule) AutoMigrate(db *gorm.DB) error
func (*GeneralRule) NewDao ¶
func (self *GeneralRule) NewDao() *generaldao.BaseDao[int64, *GeneralRule]
func (*GeneralRule) PkeyName ¶
func (self *GeneralRule) PkeyName() string
func (*GeneralRule) PkeyValue ¶
func (self *GeneralRule) PkeyValue() int64
func (*GeneralRule) TableName ¶
func (self *GeneralRule) TableName() string
type GeneralRuleDto ¶
type GeneralRuleDto struct {
basedto.BaseEntity
Id int64 `json:"id,string"`
CreatedBy int64 `json:"created_by,string"`
Rule string `json:"rule"`
Result string `json:"result"`
Param string `json:"param"`
FuncType string `json:"func_type"`
FuncName string `json:"func_name"`
FuncId string `json:"func_id"`
Domain string `json:"domain"`
Description string `json:"description"`
CreatedAt time.Time `json:"created_at"`
}
Click to show internal directories.
Click to hide internal directories.