Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GormService ¶
type GormService struct {
// contains filtered or unexported fields
}
func NewGormService ¶
func NewGormService(ctx context.Context) *GormService
NewGormService 创建GormService实例
func (*GormService) BatchWriteFile ¶
func (gormService *GormService) BatchWriteFile(path string, fileModels []*repository.FileModel) error
BatchWriteFile 批量写入文件
func (*GormService) GenerateFile ¶
func (gormService *GormService) GenerateFile(tblPrefix string, tableNames []string, path string)
GenerateFile 生成model/repository
func (*GormService) WriteFile ¶
func (gormService *GormService) WriteFile(path string, fileModel *repository.FileModel) error
WriteFile 写入文件
Click to show internal directories.
Click to hide internal directories.