可从数据库获取字段

This commit is contained in:
QM303176530
2020-07-05 16:29:45 +08:00
parent 9a582877ea
commit fe7364b301
8 changed files with 373 additions and 108 deletions

View File

@@ -0,0 +1,15 @@
package request
type DBReq struct {
Database string `json:"database";gorm:"column:database"`
}
type TableReq struct {
TableName string `json:"tableName"`
}
type ColumeReq struct {
ColumeName string `json:"columeName";gorm:"column:colume_name"`
DataType string `json:"dataType";gorm:"column:data_type"`
ColumeComment string `json:"columeComment";gorm:"column:colume_comment"`
}