修改createBy和updateBy为uint类型

This commit is contained in:
linwenxiang committed 2020-09-03 22:14:34 +08:00
1 parent 0ae41f247c
commit 41b06c806a
7 files changed
+25 -9

No files matched your search

+5 -4
View File
@@ -4,6 +4,7 @@ import (
orm "go-admin/global"
"go-admin/tools"
"go-admin/tools/model"
"strconv"
)
type SysJob struct {
@@ -37,12 +38,12 @@ func (e *SysJob) GetId() interface{} {
return e.JobId
}
func (e *SysJob) SetCreateBy(createBy string) {
e.CreateBy = createBy
func (e *SysJob) SetCreateBy(createBy uint) {
e.CreateBy = strconv.Itoa(int(createBy))
}
func (e *SysJob) SetUpdateBy(updateBy string) {
e.UpdateBy = updateBy
func (e *SysJob) SetUpdateBy(updateBy uint) {
e.UpdateBy = strconv.Itoa(int(updateBy))
}
// 创建SysJob