swagger配置 数据库初始化结构调整

This commit is contained in:
pixelqm
2019-09-03 17:43:18 +08:00
parent 6fe6ef9437
commit b70ab642cb
4 changed files with 37 additions and 15 deletions

View File

@@ -2,8 +2,8 @@ package modelInterface
// 因为我也不确定项目要不要多人维护 所以定义了CURD接口 凡是对数据库进行简单CURD操作 请实现此接口 默认首位返回 error
type CURD interface {
Create() (error, interface{})
Updata() (error, interface{})
Read() (error, interface{})
Delete() (error, interface{})
Create() (error, CURD)
Updata() (error, CURD)
Read() (error, CURD)
Delete() (error, CURD)
}