service_convertor

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTagHandler

func ParseTagHandler(structName, fieldName, tag string)

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func DefaultConfig

func DefaultConfig() *Config

func (*Config) DefaultMethodName

func (s *Config) DefaultMethodName(t string) *Config

func (*Config) EnableAutoFormTag

func (s *Config) EnableAutoFormTag(t bool) *Config

func (*Config) EnableAutoJsonTag

func (s *Config) EnableAutoJsonTag(t bool) *Config

func (*Config) EnableDebug

func (s *Config) EnableDebug(t bool) *Config

func (*Config) EnableTOFileSingle

func (s *Config) EnableTOFileSingle(t bool) *Config

func (*Config) EnableVOFileSingle

func (s *Config) EnableVOFileSingle(t bool) *Config

func (*Config) SavePath

func (s *Config) SavePath(t string) *Config

type Struct2Service

type Struct2Service struct {
	// contains filtered or unexported fields
}

func NewStruct2Service

func NewStruct2Service(config *Config) *Struct2Service

func (*Struct2Service) AutoMigrate

func (s *Struct2Service) AutoMigrate(t ...interface{}) *Struct2Service

func (*Struct2Service) Run

func (s *Struct2Service) Run() error

type TagInfo

type TagInfo []string //此tagInfo存储大量以binding(required)类似的语法直接为VO添加tag

func ParseTag

func ParseTag(tag string) (tagInfo TagInfo, err error)

type TagInfoMap

type TagInfoMap map[string]TagInfo

func GetTagInfoMap

func GetTagInfoMap() *TagInfoMap

func (*TagInfoMap) GetTag

func (t *TagInfoMap) GetTag(structName, fieldName string) TagInfo

func (*TagInfoMap) InsertTag

func (t *TagInfoMap) InsertTag(structName, fieldName string, tag TagInfo)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL