Documentation
¶
Overview ¶
Code generated by godddx, DO AVOID EDIT.
Code generated by godddx, DO AVOID EDIT.
Code generated by godddx, DO AVOID EDIT.
Code generated by godddx, DO AVOID EDIT.
Code generated by godddx, DO AVOID EDIT.
Index ¶
- type AddConfigInput
- type Config
- type ConfigStorer
- type Core
- func (c Core) CreateConfig(ctx context.Context, in *AddConfigInput) (*Config, error)
- func (c Core) DeleteConfig(ctx context.Context, id int) (*Config, error)
- func (c Core) GetConfig(ctx context.Context, id int) (*Config, error)
- func (c Core) ListConfigs(ctx context.Context, in *FindConfigInput) ([]*Config, int64, error)
- func (c Core) UpdateConfig(ctx context.Context, in *EditConfigInput, id int) (*Config, error)
- type EditConfigInput
- type Ext
- type FindConfigInput
- type SIPConfig
- type Storer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddConfigInput ¶
type Config ¶
type Config struct {
ID string `gorm:"primaryKey" json:"id"`
CreatedAt orm.Time `gorm:"column:created_at;notNull;default:CURRENT_TIMESTAMP" json:"created_at"`
UpdatedAt orm.Time `gorm:"column:updated_at;notNull;default:CURRENT_TIMESTAMP" json:"updated_at"`
Type string `gorm:"column:type;notNull;default:''" json:"type"`
Ext Ext `gorm:"column:ext;notNull;default:'{}';type:jsonb" json:"data"`
}
Config domain model
type ConfigStorer ¶
type ConfigStorer interface {
List(context.Context, *[]*Config, orm.Pager, ...orm.QueryOption) (int64, error)
Get(context.Context, *Config, ...orm.QueryOption) error
Create(context.Context, *Config) error
Update(context.Context, *Config, func(*Config), ...orm.QueryOption) error
Delete(context.Context, *Config, ...orm.QueryOption) error
FirstOrCreate(*Config) error
}
ConfigStorer Instantiation interface
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
Core business domain
func (Core) CreateConfig ¶ added in v1.4.21
CreateConfig Insert into database
func (Core) DeleteConfig ¶ added in v1.4.21
DeleteConfig Delete object
func (Core) ListConfigs ¶ added in v1.4.21
ListConfigs Paginated search
func (Core) UpdateConfig ¶ added in v1.4.21
UpdateConfig Update object information
type EditConfigInput ¶
type FindConfigInput ¶
type FindConfigInput struct {
web.PagerFilter
Type string `form:"type"`
Data Ext `form:"data"`
}
Click to show internal directories.
Click to hide internal directories.