...
|
...
|
@@ -15,7 +15,7 @@ var _ = Describe("返回菜单服务列表", func() { |
|
|
BeforeEach(func() {
|
|
|
_, err := pG.DB.QueryOne(
|
|
|
pg.Scan(&menuId),
|
|
|
"INSERT INTO base.menu (menu_id, parent_id, menu_name, code, access_code, menu_type, icon, sort, remark, category, parent_path, is_publish, is_system) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING menu_id",
|
|
|
"INSERT INTO users.menu (menu_id, parent_id, menu_name, code, access_code, menu_type, icon, sort, remark, category, parent_path, is_publish, is_system) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) RETURNING menu_id",
|
|
|
1, 0, "testMenuName", "testCode", "testAccessCode", "testMenuType", "testIcon", 1, "testDesc", "testCategory", "testfullPath", 1, 1)
|
|
|
Expect(err).NotTo(HaveOccurred())
|
|
|
})
|
...
|
...
|
@@ -40,7 +40,7 @@ var _ = Describe("返回菜单服务列表", func() { |
|
|
})
|
|
|
})
|
|
|
AfterEach(func() {
|
|
|
_, err := pG.DB.Exec("DELETE FROM base.menu WHERE true")
|
|
|
_, err := pG.DB.Exec("DELETE FROM users.menu WHERE true")
|
|
|
Expect(err).NotTo(HaveOccurred())
|
|
|
})
|
|
|
}) |
...
|
...
|
|