'隐私协议'
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
//隐私协议列表
|
||||
export function privacyList(data): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/admin/v1/agreement/list',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
//协议类型列表
|
||||
export function agreementTypeList(data): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/admin/v1/agreement/types',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
}
|
||||
//隐私协议添加
|
||||
export function addPrivacy(data): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/admin/v1/agreement/create',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
//隐私协议修改
|
||||
export function updatePrivacy(data): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/admin/v1/agreement/update',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//隐私协议删除
|
||||
export function deletePrivacy(data): AxiosPromise<any> {
|
||||
return request({
|
||||
url: '/admin/v1/agreement/delete',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user