add: 提交部分表设计
update: 1.所有model嵌入gorm公用model 2.所有model嵌入BaseModel
This commit is contained in:
@@ -210,8 +210,6 @@ func TestAPIRegression_RouteModularization(t *testing.T) {
|
||||
Password: "hashedpassword",
|
||||
UserType: constants.UserTypePlatform,
|
||||
Status: constants.StatusEnabled,
|
||||
Creator: 1,
|
||||
Updater: 1,
|
||||
}
|
||||
env.db.Create(account)
|
||||
|
||||
@@ -234,8 +232,6 @@ func TestAPIRegression_RouteModularization(t *testing.T) {
|
||||
RoleName: "回归测试角色",
|
||||
RoleType: constants.RoleTypeSuper,
|
||||
Status: constants.StatusEnabled,
|
||||
Creator: 1,
|
||||
Updater: 1,
|
||||
}
|
||||
env.db.Create(role)
|
||||
|
||||
@@ -259,8 +255,6 @@ func TestAPIRegression_RouteModularization(t *testing.T) {
|
||||
PermCode: "regression:test:perm",
|
||||
PermType: constants.PermissionTypeMenu,
|
||||
Status: constants.StatusEnabled,
|
||||
Creator: 1,
|
||||
Updater: 1,
|
||||
}
|
||||
env.db.Create(perm)
|
||||
|
||||
@@ -328,8 +322,6 @@ func TestAPIRegression_Pagination(t *testing.T) {
|
||||
Password: "hashedpassword",
|
||||
UserType: constants.UserTypePlatform,
|
||||
Status: constants.StatusEnabled,
|
||||
Creator: 1,
|
||||
Updater: 1,
|
||||
}
|
||||
env.db.Create(account)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user