service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2021 License: MIT Imports: 7 Imported by: 0

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 写入文件

Jump to

Keyboard shortcuts

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