Documentation
¶
Index ¶
- func InjectGeneralRule(s *GeneralRule)
- func InjectGeneralRuleDto(s *GeneralRuleDto)
- func LoadGeneralRule() baseiface.ISingleton
- func LoadGeneralRuleDto() baseiface.ISingleton
- func NewDaoGeneralRule() *generaldao.BaseDao[int64, *GeneralRule]
- type GeneralRule
- func (self *GeneralRule) AutoMigrate(db *gorm.DB) error
- func (self *GeneralRule) From(ruleFile *ruledto.RuleDefineDto) *GeneralRule
- func (self *GeneralRule) NewDao() *generaldao.BaseDao[int64, *GeneralRule]
- func (self *GeneralRule) PkeyName() string
- func (self *GeneralRule) PkeyValue() int64
- func (self *GeneralRule) TableName() string
- func (self *GeneralRule) ToRuleData() *ruledata.RuleData
- type GeneralRuleDto
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectGeneralRule ¶
func InjectGeneralRule(s *GeneralRule)
func InjectGeneralRuleDto ¶
func InjectGeneralRuleDto(s *GeneralRuleDto)
func LoadGeneralRule ¶
func LoadGeneralRule() baseiface.ISingleton
func LoadGeneralRuleDto ¶
func LoadGeneralRuleDto() baseiface.ISingleton
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:''"`
Domain string `json:"domain" gorm:"column:domain;type:varchar(255);comment:''"`
FuncId string `json:"func_id" gorm:"column:func_id;type:varchar(255);comment:''"`
FuncName string `json:"func_name" gorm:"column:func_name;type:varchar(255);comment:''"`
FuncType string `json:"func_type" gorm:"column:func_type;type:varchar(255);comment:''"`
Description string `json:"description" gorm:"column:description;varchar(255):text;comment:''"`
Rule string `json:"rule" gorm:"column:rule;type:mediumtext;comment:''"`
Param string `json:"param" gorm:"column:param;type:mediumtext;comment:''"`
Result string `json:"result" gorm:"column:result;type:mediumtext;comment:''"`
CreatedBy int64 `json:"created_by,string" gorm:"column:created_by;type:bigint(20);comment:'创建者';default:-1"`
CreatedAt time.Time `json:"created_at" gorm:"column:created_at;type:datetime;comment:''"`
}
AUTO_INCREMENT
func FindBeanGeneralRule ¶
func FindBeanGeneralRule() *GeneralRule
func From ¶
func From(ruleFile *ruledto.RuleDefineDto) *GeneralRule
@Title 文件名称: general_rule.go @Description 描述: 统一返回结构
@Author 作者: raymond@163.com 时间(2025-01-31 16:43:53) @Update 作者: raymond@163.com 时间(2025-01-31 16:43:53)
func NewGeneralRule ¶
func NewGeneralRule() *GeneralRule
func (*GeneralRule) AutoMigrate ¶
func (self *GeneralRule) AutoMigrate(db *gorm.DB) error
func (*GeneralRule) From ¶
func (self *GeneralRule) From(ruleFile *ruledto.RuleDefineDto) *GeneralRule
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
func (*GeneralRule) ToRuleData ¶
func (self *GeneralRule) ToRuleData() *ruledata.RuleData
type GeneralRuleDto ¶
type GeneralRuleDto struct {
basedto.BaseEntity `json:"-"`
Id int64 `json:"id,string"`
CreatedBy int64 `json:"created_by,string"`
Rule string `json:"rule"`
Result string `json:"result"`
Remark string `json:"remark"`
Param string `json:"param"`
FuncId string `json:"func_id"`
FuncName string `json:"func_name"`
FuncType string `json:"func_type"`
Domain string `json:"domain"`
CreatedAt time.Time `json:"created_at"`
}
func FindBeanGeneralRuleDto ¶
func FindBeanGeneralRuleDto() *GeneralRuleDto
Click to show internal directories.
Click to hide internal directories.