Merge branch 'zj' of pplokijuhyg/blog-server into master
This commit is contained in:
commit
0930590766
@ -1,10 +1,13 @@
|
||||
//添加分组
|
||||
//groupname:分组名 fuid :父分组
|
||||
// 父分组=0时是一级分组
|
||||
var groupadd = async (ctx, next) => {
|
||||
await dbs.add("group", { groupname: ctx.query.groupname, fuid: ctx.query.fuid == null ? '0' : ctx.query.fuid })
|
||||
ctx.body = "添加成功"
|
||||
next()
|
||||
}
|
||||
// 删除分组
|
||||
// num_key 操作使用的id
|
||||
var groupdel = async (ctx, next) => {
|
||||
await dbs.remove("group", { num_key: parseInt(ctx.query.key) })
|
||||
ctx.body = "删除成功"
|
||||
|
Loading…
Reference in New Issue
Block a user