feat:clear no used file go
This commit is contained in:
1 parent
000cd1d07d
commit
c9b073908e
11 files changed
+72
-816
No files matched your search
@@ -1,27 +0,0 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
|
||||
"go-admin/common/models"
|
||||
)
|
||||
|
||||
type Scol struct {
|
||||
gorm.Model
|
||||
models.ControlBy
|
||||
|
||||
Name string `json:"name" gorm:"type:varchar(255);comment:名称"` //
|
||||
}
|
||||
|
||||
func (Scol) TableName() string {
|
||||
return "scol"
|
||||
}
|
||||
|
||||
func (e *Scol) Generate() models.ActiveRecord {
|
||||
o := *e
|
||||
return &o
|
||||
}
|
||||
|
||||
func (e *Scol) GetId() interface{} {
|
||||
return e.ID
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
"go-admin/common/models"
|
||||
)
|
||||
|
||||
type Student struct {
|
||||
gorm.Model
|
||||
models.ControlBy
|
||||
|
||||
Name string `json:"name" gorm:"type:varchar(255);comment:姓名"` //
|
||||
}
|
||||
|
||||
func (Student) TableName() string {
|
||||
return "student"
|
||||
}
|
||||
|
||||
func (e *Student) Generate() models.ActiveRecord {
|
||||
o := *e
|
||||
return &o
|
||||
}
|
||||
|
||||
func (e *Student) GetId() interface{} {
|
||||
return e.ID
|
||||
}
|
||||
@@ -22,8 +22,9 @@ type SysJob struct {
|
||||
EntryId int `json:"entry_id" gorm:"size:11;"` // job启动时返回的id
|
||||
CreateBy string `json:"createBy" gorm:"size:128;"` //
|
||||
UpdateBy string `json:"updateBy" gorm:"size:128;"` //
|
||||
DataScope string `json:"dataScope" gorm:"-"`
|
||||
BaseModel
|
||||
|
||||
DataScope string `json:"dataScope" gorm:"-"`
|
||||
}
|
||||
|
||||
func (SysJob) TableName() string {
|
||||
|
||||
Reference in new issue
Block a user