Documentation
¶
Overview ¶
Code generated by gowebx, DO AVOID EDIT.
Code generated by gowebx, DO AVOID EDIT.
Code generated by gowebx, DO AVOID EDIT.
Code generated by gowebx, DO AVOID EDIT.
Code generated by gowebx, DO AVOID EDIT.
Index ¶
- type AddConfigInput
- type Config
- type ConfigStorer
- type Core
- func (c *Core) AddConfig(ctx context.Context, in *AddConfigInput) (*Config, error)
- func (c *Core) DelConfig(ctx context.Context, id int) (*Config, error)
- func (c *Core) EditConfig(ctx context.Context, in *EditConfigInput, id int) (*Config, error)
- func (c *Core) FindConfig(ctx context.Context, in *FindConfigInput) ([]*Config, int64, error)
- func (c *Core) GetConfig(ctx context.Context, 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 { Find(context.Context, *[]*Config, orm.Pager, ...orm.QueryOption) (int64, error) Get(context.Context, *Config, ...orm.QueryOption) error Add(context.Context, *Config) error Edit(context.Context, *Config, func(*Config), ...orm.QueryOption) error Del(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) EditConfig ¶
EditConfig Update object information
func (*Core) FindConfig ¶
FindConfig Paginated search
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.