简化代码生成
This commit is contained in:
1 parent
72a876f37a
commit
f3e0e4dbc6
6 files changed
+26
-24
No files matched your search
@@ -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}}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user