Refine the rest structure.
This commit is contained in:
13
code/rest/install_model.go
Normal file
13
code/rest/install_model.go
Normal file
@ -0,0 +1,13 @@
|
||||
package rest
|
||||
|
||||
import "github.com/jinzhu/gorm"
|
||||
|
||||
/**
|
||||
* 表名对应的表结构
|
||||
*/
|
||||
type InstallTableInfo struct {
|
||||
Name string `json:"name"`
|
||||
TableExist bool `json:"tableExist"`
|
||||
AllFields []*gorm.StructField `json:"allFields"`
|
||||
MissingFields []*gorm.StructField `json:"missingFields"`
|
||||
}
|
Reference in New Issue
Block a user