增加详情接口
This commit is contained in:
@@ -70,5 +70,8 @@ module.exports = {
|
||||
ids = ids?.split(",")?.map(e => `'${e}'`)?.toString()
|
||||
return query(`delete from ${table} where id in (${ids})`)
|
||||
},
|
||||
detail: ({table, id}) => {
|
||||
return query(`select * from ${table} where id='${id}' limit 0,1`)
|
||||
},
|
||||
format: args => args.map(e => `${e.prop}`).join(" ")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user