Documentation ¶
Overview ¶
Package db Code generated, DO NOT EDIT.
Package db Code generated, DO NOT EDIT.
Package db Code generated, DO NOT EDIT.
Package db Code generated, DO NOT EDIT.
Package db Code generated, DO NOT EDIT.
Package db Code generated, DO NOT EDIT.
Package db Code generated, DO NOT EDIT.
Package db Code generated, DO NOT EDIT.
Package db Code generated, DO NOT EDIT.
Package db Code generated, DO NOT EDIT.
Index ¶
- Constants
- func NewAccountDAO(db *gorm.DB) persistence.AccountDAO
- func NewApplicationDAO(db *gorm.DB) persistence.ApplicationDAO
- func NewEventBusDAO(db *gorm.DB) persistence.EventBusDAO
- func NewEventTypeDAO(db *gorm.DB) persistence.EventTypeDAO
- func NewMySQLDB(config config.DBConfig) *gorm.DB
- func NewPassportDAO(db *gorm.DB) persistence.PassportDAO
- func NewPublicationDAO(db *gorm.DB) persistence.PublicationDAO
- func NewSQLiteDB() *gorm.DB
- func NewSecretDAO(db *gorm.DB) persistence.SecretDAO
- func NewSubscriptionDAO(db *gorm.DB) persistence.SubscriptionDAO
- func NewTechRelationDAO(db *gorm.DB) persistence.TechRelationDAO
- type AccountDAO
- func (e AccountDAO) BaseFields() base.Fields
- func (e AccountDAO) Create(ctx context.Context, r req.CreateAccountReq) (string, error)
- func (e AccountDAO) Delete(ctx context.Context, r req.DeleteAccountReq) error
- func (e AccountDAO) Get(ctx context.Context, r req.GetAccountsPO) (po.Accounts, uint32, error)
- func (e AccountDAO) IsRelated(fields base.Fields) bool
- func (e AccountDAO) Transaction(fun func(tx *gorm.DB) error) error
- func (e AccountDAO) Update(ctx context.Context, r req.UpdateAccountReq) error
- type ApplicationDAO
- func (e ApplicationDAO) BaseFields() base.Fields
- func (e ApplicationDAO) Create(ctx context.Context, r req.CreateApplicationReq) (string, error)
- func (e ApplicationDAO) Delete(ctx context.Context, r req.DeleteApplicationReq) error
- func (e ApplicationDAO) Get(ctx context.Context, r req.GetApplicationsPO) (po.Applications, uint32, error)
- func (e ApplicationDAO) IsRelated(fields base.Fields) bool
- func (e ApplicationDAO) Transaction(fun func(tx *gorm.DB) error) error
- func (e ApplicationDAO) Update(ctx context.Context, r req.UpdateApplicationReq) error
- type Category
- type EventBusDAO
- func (e EventBusDAO) BaseFields() base.Fields
- func (e EventBusDAO) Create(ctx context.Context, r req.CreateEventBusReq) (string, error)
- func (e EventBusDAO) Delete(ctx context.Context, r req.DeleteEventBusReq) error
- func (e EventBusDAO) Get(ctx context.Context, r req.GetEventBusesPO) (po.EventBuses, uint32, error)
- func (e EventBusDAO) IsRelated(fields base.Fields) bool
- func (e EventBusDAO) Transaction(fun func(tx *gorm.DB) error) error
- func (e EventBusDAO) Update(ctx context.Context, r req.UpdateEventBusReq) error
- type EventTypeDAO
- func (e EventTypeDAO) BaseFields() base.Fields
- func (e EventTypeDAO) Create(ctx context.Context, r req.CreateEventTypeReq) (string, error)
- func (e EventTypeDAO) Delete(ctx context.Context, r req.DeleteEventTypeReq) error
- func (e EventTypeDAO) Get(ctx context.Context, r req.GetEventTypesPO) (po.EventTypes, uint32, error)
- func (e EventTypeDAO) IsRelated(fields base.Fields) bool
- func (e EventTypeDAO) Transaction(fun func(tx *gorm.DB) error) error
- func (e EventTypeDAO) Update(ctx context.Context, r req.UpdateEventTypeReq) error
- type PassportDAO
- func (e PassportDAO) BaseFields() base.Fields
- func (e PassportDAO) Create(ctx context.Context, r req.CreatePassportReq) (string, error)
- func (e PassportDAO) Delete(ctx context.Context, r req.DeletePassportReq) error
- func (e PassportDAO) Get(ctx context.Context, r req.GetPassportsPO) (po.Passports, uint32, error)
- func (e PassportDAO) IsRelated(fields base.Fields) bool
- func (e PassportDAO) Transaction(fun func(tx *gorm.DB) error) error
- func (e PassportDAO) Update(ctx context.Context, r req.UpdatePassportReq) error
- type PublicationDAO
- func (e PublicationDAO) BaseFields() base.Fields
- func (e PublicationDAO) Create(ctx context.Context, r req.CreatePublicationReq) (string, error)
- func (e PublicationDAO) Delete(ctx context.Context, r req.DeletePublicationReq) error
- func (e PublicationDAO) Get(ctx context.Context, r req.GetPublicationsPO) (po.Publications, uint32, error)
- func (e PublicationDAO) IsRelated(fields base.Fields) bool
- func (e PublicationDAO) Transaction(fun func(tx *gorm.DB) error) error
- func (e PublicationDAO) Update(ctx context.Context, r req.UpdatePublicationReq) error
- type SecretDAO
- func (e SecretDAO) BaseFields() base.Fields
- func (e SecretDAO) Create(ctx context.Context, r req.CreateSecretReq) (string, error)
- func (e SecretDAO) Delete(ctx context.Context, r req.DeleteSecretReq) error
- func (e SecretDAO) Get(ctx context.Context, r req.GetSecretsPO) (po.Secrets, uint32, error)
- func (e SecretDAO) IsRelated(fields base.Fields) bool
- func (e SecretDAO) Transaction(fun func(tx *gorm.DB) error) error
- func (e SecretDAO) Update(ctx context.Context, r req.UpdateSecretReq) error
- type SubscriptionDAO
- func (e SubscriptionDAO) BaseFields() base.Fields
- func (e SubscriptionDAO) Create(ctx context.Context, r req.CreateSubscriptionReq) (string, error)
- func (e SubscriptionDAO) Delete(ctx context.Context, r req.DeleteSubscriptionReq) error
- func (e SubscriptionDAO) Get(ctx context.Context, r req.GetSubscriptionsPO) (po.Subscriptions, uint32, error)
- func (e SubscriptionDAO) IsRelated(fields base.Fields) bool
- func (e SubscriptionDAO) Transaction(fun func(tx *gorm.DB) error) error
- func (e SubscriptionDAO) Update(ctx context.Context, r req.UpdateSubscriptionReq) error
- type TechRelationDAO
- func (e TechRelationDAO) BaseFields() base.Fields
- func (e TechRelationDAO) Create(ctx context.Context, r req.CreateTechRelationReq) (string, error)
- func (e TechRelationDAO) Delete(ctx context.Context, r req.DeleteTechRelationReq) error
- func (e TechRelationDAO) Get(ctx context.Context, r req.GetTechRelationsPO) (po.TechRelations, uint32, error)
- func (e TechRelationDAO) IsRelated(fields base.Fields) bool
- func (e TechRelationDAO) Transaction(fun func(tx *gorm.DB) error) error
- func (e TechRelationDAO) Update(ctx context.Context, r req.UpdateTechRelationReq) error
Constants ¶
const ( UnDeleted = 0 // 软删除:未删除 COLUMN_PATTERN = "%s.%s" // 用于构造 table.column )
Variables ¶
This section is empty.
Functions ¶
func NewApplicationDAO ¶
func NewApplicationDAO(db *gorm.DB) persistence.ApplicationDAO
NewApplicationDAO 构造方法
func NewEventTypeDAO ¶
func NewEventTypeDAO(db *gorm.DB) persistence.EventTypeDAO
NewEventTypeDAO 构造方法
func NewPublicationDAO ¶
func NewPublicationDAO(db *gorm.DB) persistence.PublicationDAO
NewPublicationDAO 构造方法
func NewSubscriptionDAO ¶
func NewSubscriptionDAO(db *gorm.DB) persistence.SubscriptionDAO
NewSubscriptionDAO 构造方法
func NewTechRelationDAO ¶
func NewTechRelationDAO(db *gorm.DB) persistence.TechRelationDAO
NewTechRelationDAO 构造方法
Types ¶
type AccountDAO ¶
type AccountDAO struct {
// contains filtered or unexported fields
}
AccountDAO Account 数据访问对象
func (AccountDAO) BaseFields ¶
func (e AccountDAO) BaseFields() base.Fields
BaseFields AccountDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底
func (AccountDAO) Create ¶
func (e AccountDAO) Create(ctx context.Context, r req.CreateAccountReq) (string, error)
func (AccountDAO) Delete ¶
func (e AccountDAO) Delete(ctx context.Context, r req.DeleteAccountReq) error
func (AccountDAO) Get ¶
func (e AccountDAO) Get(ctx context.Context, r req.GetAccountsPO) (po.Accounts, uint32, error)
Get 通用 get 方法
func (AccountDAO) IsRelated ¶
func (e AccountDAO) IsRelated(fields base.Fields) bool
IsRelated check fields is related EventBusDAO
func (AccountDAO) Transaction ¶
func (e AccountDAO) Transaction(fun func(tx *gorm.DB) error) error
Transaction 事务执行
func (AccountDAO) Update ¶
func (e AccountDAO) Update(ctx context.Context, r req.UpdateAccountReq) error
type ApplicationDAO ¶
type ApplicationDAO struct {
// contains filtered or unexported fields
}
ApplicationDAO Application 数据访问对象
func (ApplicationDAO) BaseFields ¶
func (e ApplicationDAO) BaseFields() base.Fields
BaseFields ApplicationDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底
func (ApplicationDAO) Create ¶
func (e ApplicationDAO) Create(ctx context.Context, r req.CreateApplicationReq) (string, error)
func (ApplicationDAO) Delete ¶
func (e ApplicationDAO) Delete(ctx context.Context, r req.DeleteApplicationReq) error
func (ApplicationDAO) Get ¶
func (e ApplicationDAO) Get(ctx context.Context, r req.GetApplicationsPO) (po.Applications, uint32, error)
Get 通用 get 方法
func (ApplicationDAO) IsRelated ¶
func (e ApplicationDAO) IsRelated(fields base.Fields) bool
IsRelated check fields is related EventBusDAO
func (ApplicationDAO) Transaction ¶
func (e ApplicationDAO) Transaction(fun func(tx *gorm.DB) error) error
Transaction 事务执行
func (ApplicationDAO) Update ¶
func (e ApplicationDAO) Update(ctx context.Context, r req.UpdateApplicationReq) error
type EventBusDAO ¶
type EventBusDAO struct {
// contains filtered or unexported fields
}
EventBusDAO EventBus 数据访问对象
func (EventBusDAO) BaseFields ¶
func (e EventBusDAO) BaseFields() base.Fields
BaseFields EventBusDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底
func (EventBusDAO) Create ¶
func (e EventBusDAO) Create(ctx context.Context, r req.CreateEventBusReq) (string, error)
func (EventBusDAO) Delete ¶
func (e EventBusDAO) Delete(ctx context.Context, r req.DeleteEventBusReq) error
func (EventBusDAO) Get ¶
func (e EventBusDAO) Get(ctx context.Context, r req.GetEventBusesPO) (po.EventBuses, uint32, error)
Get 通用 get 方法
func (EventBusDAO) IsRelated ¶
func (e EventBusDAO) IsRelated(fields base.Fields) bool
IsRelated check fields is related EventBusDAO
func (EventBusDAO) Transaction ¶
func (e EventBusDAO) Transaction(fun func(tx *gorm.DB) error) error
Transaction 事务执行
func (EventBusDAO) Update ¶
func (e EventBusDAO) Update(ctx context.Context, r req.UpdateEventBusReq) error
type EventTypeDAO ¶
type EventTypeDAO struct {
// contains filtered or unexported fields
}
EventTypeDAO EventType 数据访问对象
func (EventTypeDAO) BaseFields ¶
func (e EventTypeDAO) BaseFields() base.Fields
BaseFields EventTypeDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底
func (EventTypeDAO) Create ¶
func (e EventTypeDAO) Create(ctx context.Context, r req.CreateEventTypeReq) (string, error)
func (EventTypeDAO) Delete ¶
func (e EventTypeDAO) Delete(ctx context.Context, r req.DeleteEventTypeReq) error
func (EventTypeDAO) Get ¶
func (e EventTypeDAO) Get(ctx context.Context, r req.GetEventTypesPO) (po.EventTypes, uint32, error)
Get 通用 get 方法
func (EventTypeDAO) IsRelated ¶
func (e EventTypeDAO) IsRelated(fields base.Fields) bool
IsRelated check fields is related EventBusDAO
func (EventTypeDAO) Transaction ¶
func (e EventTypeDAO) Transaction(fun func(tx *gorm.DB) error) error
Transaction 事务执行
func (EventTypeDAO) Update ¶
func (e EventTypeDAO) Update(ctx context.Context, r req.UpdateEventTypeReq) error
type PassportDAO ¶
type PassportDAO struct {
// contains filtered or unexported fields
}
PassportDAO Passport 数据访问对象
func (PassportDAO) BaseFields ¶
func (e PassportDAO) BaseFields() base.Fields
BaseFields PassportDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底
func (PassportDAO) Create ¶
func (e PassportDAO) Create(ctx context.Context, r req.CreatePassportReq) (string, error)
func (PassportDAO) Delete ¶
func (e PassportDAO) Delete(ctx context.Context, r req.DeletePassportReq) error
func (PassportDAO) Get ¶
func (e PassportDAO) Get(ctx context.Context, r req.GetPassportsPO) (po.Passports, uint32, error)
Get 通用 get 方法
func (PassportDAO) IsRelated ¶
func (e PassportDAO) IsRelated(fields base.Fields) bool
IsRelated check fields is related EventBusDAO
func (PassportDAO) Transaction ¶
func (e PassportDAO) Transaction(fun func(tx *gorm.DB) error) error
Transaction 事务执行
func (PassportDAO) Update ¶
func (e PassportDAO) Update(ctx context.Context, r req.UpdatePassportReq) error
type PublicationDAO ¶
type PublicationDAO struct {
// contains filtered or unexported fields
}
PublicationDAO Publication 数据访问对象
func (PublicationDAO) BaseFields ¶
func (e PublicationDAO) BaseFields() base.Fields
BaseFields PublicationDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底
func (PublicationDAO) Create ¶
func (e PublicationDAO) Create(ctx context.Context, r req.CreatePublicationReq) (string, error)
func (PublicationDAO) Delete ¶
func (e PublicationDAO) Delete(ctx context.Context, r req.DeletePublicationReq) error
func (PublicationDAO) Get ¶
func (e PublicationDAO) Get(ctx context.Context, r req.GetPublicationsPO) (po.Publications, uint32, error)
Get 通用 get 方法
func (PublicationDAO) IsRelated ¶
func (e PublicationDAO) IsRelated(fields base.Fields) bool
IsRelated check fields is related EventBusDAO
func (PublicationDAO) Transaction ¶
func (e PublicationDAO) Transaction(fun func(tx *gorm.DB) error) error
Transaction 事务执行
func (PublicationDAO) Update ¶
func (e PublicationDAO) Update(ctx context.Context, r req.UpdatePublicationReq) error
type SecretDAO ¶
type SecretDAO struct {
// contains filtered or unexported fields
}
SecretDAO Secret 数据访问对象
func (SecretDAO) BaseFields ¶
BaseFields SecretDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底
func (SecretDAO) Transaction ¶
Transaction 事务执行
type SubscriptionDAO ¶
type SubscriptionDAO struct {
// contains filtered or unexported fields
}
SubscriptionDAO Subscription 数据访问对象
func (SubscriptionDAO) BaseFields ¶
func (e SubscriptionDAO) BaseFields() base.Fields
BaseFields SubscriptionDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底
func (SubscriptionDAO) Create ¶
func (e SubscriptionDAO) Create(ctx context.Context, r req.CreateSubscriptionReq) (string, error)
func (SubscriptionDAO) Delete ¶
func (e SubscriptionDAO) Delete(ctx context.Context, r req.DeleteSubscriptionReq) error
func (SubscriptionDAO) Get ¶
func (e SubscriptionDAO) Get(ctx context.Context, r req.GetSubscriptionsPO) (po.Subscriptions, uint32, error)
Get 通用 get 方法
func (SubscriptionDAO) IsRelated ¶
func (e SubscriptionDAO) IsRelated(fields base.Fields) bool
IsRelated check fields is related EventBusDAO
func (SubscriptionDAO) Transaction ¶
func (e SubscriptionDAO) Transaction(fun func(tx *gorm.DB) error) error
Transaction 事务执行
func (SubscriptionDAO) Update ¶
func (e SubscriptionDAO) Update(ctx context.Context, r req.UpdateSubscriptionReq) error
type TechRelationDAO ¶
type TechRelationDAO struct {
// contains filtered or unexported fields
}
TechRelationDAO TechRelation 数据访问对象
func (TechRelationDAO) BaseFields ¶
func (e TechRelationDAO) BaseFields() base.Fields
BaseFields TechRelationDAO 相关的基本字段,如果未传入任何 fields, 由此进行兜底
func (TechRelationDAO) Create ¶
func (e TechRelationDAO) Create(ctx context.Context, r req.CreateTechRelationReq) (string, error)
func (TechRelationDAO) Delete ¶
func (e TechRelationDAO) Delete(ctx context.Context, r req.DeleteTechRelationReq) error
func (TechRelationDAO) Get ¶
func (e TechRelationDAO) Get(ctx context.Context, r req.GetTechRelationsPO) (po.TechRelations, uint32, error)
Get 通用 get 方法
func (TechRelationDAO) IsRelated ¶
func (e TechRelationDAO) IsRelated(fields base.Fields) bool
IsRelated check fields is related EventBusDAO
func (TechRelationDAO) Transaction ¶
func (e TechRelationDAO) Transaction(fun func(tx *gorm.DB) error) error
Transaction 事务执行
func (TechRelationDAO) Update ¶
func (e TechRelationDAO) Update(ctx context.Context, r req.UpdateTechRelationReq) error