Skip to content

uhowep/project-gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

project-gen

the generator of project code for RESTful

暂不支持

  1. 结构体嵌套
  2. 结构体暂未完成处理tag

db: module是几个table的集合(逻辑唯独),以module为中心,嵌入db gorm.DB(或其他),且拥有DB()用于返回gorm.DB(或其他)示例

tag: 字段:field-db中字段name / gen-对应FieldModel字段如isAdd,isDelete等

结构: dao -> []table -> data -> []field

解析struct.go文件中定义的结构体时,NewGoStructData()传参必须是结构体类型,而不能是指针类型

todo

  1. todo: 梳理更方法,运用最小原则,隔离功能
  2. todo: 添加对模版语法的校验
  3. todo: 列表查询

About

the generator of project code for RESTful

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published