filefactroy

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MulanPSL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileFactroy

type FileFactroy struct {
	FileTemplate
	TestFileFactroy

	Gendirs                               []string
	Gendir, GendirPbTool, GendirPbToolBin string

	GendirModel, GendirDto                string
	GendirDao, GendirInterface            string
	GendirService, GendirEsservice        string
	GendirProto, GendirGrpc               string
	GendirController, GendirRpcController string
}

@Title 文件名称: file_factroy.go @Description 描述: 代码工厂代码文件生成

@Author 作者: leijianming@163.com 时间(2024-01-31 22:38:21) @Update 作者: leijianming@163.com 时间(2024-01-31 22:38:21)

@Title 文件名称: go_factroy.go @Description 描述: 代码工厂主文件

@Author 作者: leijianming@163.com 时间(2024-01-31 22:38:21) @Update 作者: leijianming@163.com 时间(2024-01-31 22:38:21)

var FileFactroyInst FileFactroy

func (*FileFactroy) CreateDirs

func (fileFactroy *FileFactroy) CreateDirs()

func (*FileFactroy) InfoPath

func (fileFactroy *FileFactroy) InfoPath()

func (*FileFactroy) InitPathMysql

func (fileFactroy *FileFactroy) InitPathMysql()

func (*FileFactroy) InitPostgres

func (fileFactroy *FileFactroy) InitPostgres()

func (*FileFactroy) ReCreateDirs

func (fileFactroy *FileFactroy) ReCreateDirs()

func (*FileFactroy) ReadTemplateController

func (fileFactroy *FileFactroy) ReadTemplateController() []byte

func (*FileFactroy) ReadTemplateDAO

func (fileFactroy *FileFactroy) ReadTemplateDAO() []byte

func (*FileFactroy) ReadTemplateDto

func (fileFactroy *FileFactroy) ReadTemplateDto() []byte

func (*FileFactroy) ReadTemplateESService

func (fileFactroy *FileFactroy) ReadTemplateESService() []byte

func (*FileFactroy) ReadTemplateModel

func (fileFactroy *FileFactroy) ReadTemplateModel() []byte

func (*FileFactroy) ReadTemplateMqDAO

func (fileFactroy *FileFactroy) ReadTemplateMqDAO() []byte

func (*FileFactroy) ReadTemplateMqDTO

func (fileFactroy *FileFactroy) ReadTemplateMqDTO() []byte

func (*FileFactroy) ReadTemplateMqProto

func (fileFactroy *FileFactroy) ReadTemplateMqProto() []byte

func (*FileFactroy) ReadTemplateMqService

func (fileFactroy *FileFactroy) ReadTemplateMqService() []byte

func (*FileFactroy) ReadTemplateProto

func (fileFactroy *FileFactroy) ReadTemplateProto() []byte

func (*FileFactroy) ReadTemplateRpc

func (fileFactroy *FileFactroy) ReadTemplateRpc() []byte

func (*FileFactroy) ReadTemplateRpcController

func (fileFactroy *FileFactroy) ReadTemplateRpcController() []byte

func (*FileFactroy) ReadTemplateService

func (fileFactroy *FileFactroy) ReadTemplateService() []byte

func (*FileFactroy) ReadTemplateServiceInterface

func (fileFactroy *FileFactroy) ReadTemplateServiceInterface() []byte

func (*FileFactroy) ReadTestTemplateMqESSrv

func (fileFactroy *FileFactroy) ReadTestTemplateMqESSrv() []byte

func (*FileFactroy) ReadTestTemplateMqSrv

func (fileFactroy *FileFactroy) ReadTestTemplateMqSrv() []byte

func (*FileFactroy) RmDirs

func (fileFactroy *FileFactroy) RmDirs()

func (*FileFactroy) TransDir

func (fileFactroy *FileFactroy) TransDir(path string, base string) string

func (*FileFactroy) WriteFileModule

func (fileFactroy *FileFactroy) WriteFileModule(dir string, filename string, cms string)

func (*FileFactroy) WriteFileModuleRpc

func (fileFactroy *FileFactroy) WriteFileModuleRpc(dir, filename, cms string)

type FileTemplate

type FileTemplate struct {
}

@Title 文件名称: file_template.go @Description 描述: 代码工厂文件生成基类

@Author 作者: leijianming@163.com 时间(2024-01-31 22:38:21) @Update 作者: leijianming@163.com 时间(2024-01-31 22:38:21)

func (*FileTemplate) ExecPb

func (fileTemplate *FileTemplate) ExecPb()

func (*FileTemplate) PathExists

func (fileTemplate *FileTemplate) PathExists(path string) (bool, error)

func (*FileTemplate) ReadFile

func (fileTemplate *FileTemplate) ReadFile(filename string) []byte

func (*FileTemplate) ReadTemplateFile

func (fileTemplate *FileTemplate) ReadTemplateFile(template string) []byte

func (*FileTemplate) WriteFile

func (fileTemplate *FileTemplate) WriteFile(dir string, filename string, cms string)

type TestFileFactroy

type TestFileFactroy struct {
	FileTemplate

	GendirTest string

	GendirControllerTest, GendirDaoTest    string
	GendirServiceTest, GendirEsserviceTest string
	GendirsTest                            []string
}

@Title 文件名称: testfile_factroy.go @Description 描述: 代码工厂测试文件生成

@Author 作者: leijianming@163.com 时间(2024-01-31 22:38:21) @Update 作者: leijianming@163.com 时间(2024-01-31 22:38:21)

func (*TestFileFactroy) CreateDirs

func (fileFactroy *TestFileFactroy) CreateDirs()

func (*TestFileFactroy) InfoPath

func (fileFactroy *TestFileFactroy) InfoPath()

func (*TestFileFactroy) InitPathMysql

func (fileFactroy *TestFileFactroy) InitPathMysql()

func (*TestFileFactroy) InitPostgres

func (fileFactroy *TestFileFactroy) InitPostgres()

func (*TestFileFactroy) ReCreateDirs

func (fileFactroy *TestFileFactroy) ReCreateDirs()

func (*TestFileFactroy) ReadTestTemplateController

func (fileFactroy *TestFileFactroy) ReadTestTemplateController() []byte

func (*TestFileFactroy) ReadTestTemplateDAO

func (fileFactroy *TestFileFactroy) ReadTestTemplateDAO() []byte

func (*TestFileFactroy) ReadTestTemplateESSrv

func (fileFactroy *TestFileFactroy) ReadTestTemplateESSrv() []byte

func (*TestFileFactroy) ReadTestTemplateMqESSrv

func (fileFactroy *TestFileFactroy) ReadTestTemplateMqESSrv() []byte

func (*TestFileFactroy) ReadTestTemplateMqSrv

func (fileFactroy *TestFileFactroy) ReadTestTemplateMqSrv() []byte

func (*TestFileFactroy) ReadTestTemplateSrv

func (fileFactroy *TestFileFactroy) ReadTestTemplateSrv() []byte

func (*TestFileFactroy) RmDirs

func (fileFactroy *TestFileFactroy) RmDirs()

func (*TestFileFactroy) TransDirTest

func (fileFactroy *TestFileFactroy) TransDirTest(path string, base string) string

func (*TestFileFactroy) WriteFileModule

func (fileFactroy *TestFileFactroy) WriteFileModule(dir string, filename string, cms string)

Jump to

Keyboard shortcuts

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