Documentation ¶
Index ¶
- func CodeModelList()
- func ControllerAdd(SelectTableName string)
- func ControllerDelete(SelectTableName string)
- func ControllerDetail(SelectTableName string)
- func ControllerEdit(SelectTableName string)
- func ControllerFile(SelectTableName string)
- func ControllerList(SelectTableName string)
- func CreateMutiDir(filePath string) error
- func GetDadatase() string
- func ModeCode(tableList []TableList, mysql *gorm.DB, mysqldb string, ...) string
- func ModeFiles(SelectTableName, st string)
- func ModePbFile(SelectTableName string, st string)
- func MysqlType(name string) string
- func MysqlTypeGrpc(name string) string
- func OneTable(mysql *gorm.DB, mysqldb, SelectTableName string, fileName *FileNameChange) string
- func RequestFile(SelectTableName string)
- func RouterFile(SelectTableName string)
- func ServiceFile(SelectTableName string)
- type Buffer
- type FileNameChange
- type Model
- type TableInfo
- type TableList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ControllerAdd ¶
func ControllerAdd(SelectTableName string)
func ControllerDelete ¶
func ControllerDelete(SelectTableName string)
*@Author Administrator *@Date 22/4/2021 15:49 *@desc
func ControllerDetail ¶
func ControllerDetail(SelectTableName string)
*@Author Administrator *@Date 22/4/2021 15:53 *@desc
func ControllerEdit ¶
func ControllerEdit(SelectTableName string)
func ControllerFile ¶
func ControllerFile(SelectTableName string)
*@Author Administrator *@Date 9/4/2021 12:17 *@desc
func ControllerList ¶
func ControllerList(SelectTableName string)
*@Author Administrator *@Date 22/4/2021 15:49 *@desc
func ModeCode ¶
func ModeCode(tableList []TableList, mysql *gorm.DB, mysqldb string, fileName *FileNameChange) string
*@Author Administrator *@Date 8/4/2021 14:44 *@desc
func ModeFiles ¶
func ModeFiles(SelectTableName, st string)
*@Author Administrator *@Date 9/4/2021 12:51 *@desc
func ModePbFile ¶
*@Author Administrator *@Date 13/4/2021 14:32 *@desc
func MysqlTypeGrpc ¶
func OneTable ¶
func OneTable(mysql *gorm.DB, mysqldb, SelectTableName string, fileName *FileNameChange) string
*@Author Administrator *@Date 9/4/2021 13:27 *@desc
func RequestFile ¶
func RequestFile(SelectTableName string)
func RouterFile ¶
func RouterFile(SelectTableName string)
*@Author Administrator *@Date 9/4/2021 12:17 *@desc
func ServiceFile ¶
func ServiceFile(SelectTableName string)
*@Author Administrator *@Date 9/4/2021 12:17 *@desc
Types ¶
type FileNameChange ¶
type FileNameChange struct { }
func (*FileNameChange) Camel2Case ¶
func (f *FileNameChange) Camel2Case(name string) string
驼峰式写法转为下划线写法
func (*FileNameChange) Case2Camel ¶
func (f *FileNameChange) Case2Camel(name string) string
下划线写法转为驼峰写法
Click to show internal directories.
Click to hide internal directories.