简化代码生成

This commit is contained in:
linwenxiang committed 2020-09-22 20:39:11 +08:00
1 parent 72a876f37a
commit f3e0e4dbc6
6 files changed
+26 -24

No files matched your search

-8
View File
@@ -34,14 +34,6 @@ func (m *{{.ClassName}}Search) Generate() dto.Index {
return &o
}
func (m *{{.ClassName}}Search) GetPageIndex() int {
return m.PageIndex
}
func (m *{{.ClassName}}Search) GetPageSize() int {
return m.PageSize
}
type {{.ClassName}}Control struct {
{{ range .Columns -}}
{{$x := .Pk}}
-8
View File
@@ -41,11 +41,3 @@ func (e *{{.ClassName}}) Generate() models.ActiveRecord {
func (e *{{.ClassName}}) GetId() interface{} {
return e.{{.PkGoField}}
}
func (e *{{.ClassName}}) SetCreateBy(createBy uint) {
e.CreateBy = createBy
}
func (e *{{.ClassName}}) SetUpdateBy(updateBy uint) {
e.UpdateBy = updateBy
}