Documentation ¶
Index ¶
- Constants
- type Config
- func (s *Config) EnableCreate(t bool) *Config
- func (s *Config) EnableDebug(t bool) *Config
- func (s *Config) EnableDelete(t bool) *Config
- func (s *Config) EnableGinExample(t bool) *Config
- func (s *Config) EnableQuery(t bool) *Config
- func (s *Config) EnableResponse(t bool) *Config
- func (s *Config) EnableUpdate(t bool) *Config
- func (s *Config) EnableVOBind(t bool) *Config
- func (s *Config) GinPackageName(t string) *Config
- func (s *Config) SavePath(t string) *Config
- type Struct2Controller
Constants ¶
View Source
const KPackageName = "controller"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func DefaultCConfig ¶
func DefaultCConfig() *Config
func (*Config) EnableCreate ¶
func (*Config) EnableDebug ¶
func (*Config) EnableDelete ¶
func (*Config) EnableGinExample ¶
func (*Config) EnableQuery ¶
func (*Config) EnableResponse ¶
func (*Config) EnableUpdate ¶
func (*Config) EnableVOBind ¶
func (*Config) GinPackageName ¶
type Struct2Controller ¶
type Struct2Controller struct {
// contains filtered or unexported fields
}
func NewStruct2Controller ¶
func NewStruct2Controller(config *Config) *Struct2Controller
func (*Struct2Controller) AutoMigrate ¶
func (s *Struct2Controller) AutoMigrate(t ...interface{}) *Struct2Controller
func (*Struct2Controller) Config ¶
func (s *Struct2Controller) Config(config *Config) *Struct2Controller
func (*Struct2Controller) Run ¶
func (s *Struct2Controller) Run() error
Click to show internal directories.
Click to hide internal directories.