用户组与用户的操作
var axios = require('axios').create({
withCredentials: true
})
axios.patch('https://cloud.minapp.com/userve/v1/miniapp/group/membership/',
[{
op: 'add',
path: '/membership',
users: [5, 6],
groups: [53, 54]
},{
op: 'remove',
path: '/membership',
users: [5, 6],
groups: [53, 54]
}]).then(res => {
console.log(res)
})Last updated
Was this helpful?