You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
555 B
21 lines
555 B
import axios from '@/axios/index'
|
|
// 获取列表
|
|
export function crmRoleIndex(data) {
|
|
return axios.posts('/api/basedata/role/list',data)
|
|
}
|
|
// 创建
|
|
export function crmRoleSave(data) {
|
|
return axios.posts('/api/basedata/role',data)
|
|
}
|
|
// 根据id获取
|
|
export function crmRoleRead(id) {
|
|
return axios.gets('/api/basedata/role/'+id)
|
|
}
|
|
// 根据id修改
|
|
export function crmRoleUpdate(id,data) {
|
|
return axios.puts('/api/basedata/role/'+id,data)
|
|
}
|
|
// 删除
|
|
export function crmRoleDelete(data) {
|
|
return axios.posts('/api/basedata/role/delete',data)
|
|
}
|
|
|