修改customer文件位restful模式 提供示例
This commit is contained in:
+18
-18
@@ -7,10 +7,10 @@ import service from '@/utils/request'
|
||||
// @Produce application/json
|
||||
// @Param data body dbModel.ExaCustomer true "删除客户"
|
||||
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
|
||||
// @Router /customer/createExaCustomer [post]
|
||||
// @Router /customer/customer [post]
|
||||
export const createExaCustomer = (data) => {
|
||||
return service({
|
||||
url: "/customer/createExaCustomer",
|
||||
url: "/customer/customer",
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
@@ -25,11 +25,11 @@ export const createExaCustomer = (data) => {
|
||||
// @Produce application/json
|
||||
// @Param data body dbModel.ExaCustomer true "更新客户信息"
|
||||
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
|
||||
// @Router /customer/updateExaCustomer [post]
|
||||
// @Router /customer/customer [put]
|
||||
export const updateExaCustomer = (data) => {
|
||||
return service({
|
||||
url: "/customer/updateExaCustomer",
|
||||
method: 'post',
|
||||
url: "/customer/customer",
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
@@ -42,11 +42,11 @@ export const updateExaCustomer = (data) => {
|
||||
// @Produce application/json
|
||||
// @Param data body dbModel.ExaCustomer true "创建客户"
|
||||
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
|
||||
// @Router /customer/deleteExaCustomer [post]
|
||||
// @Router /customer/customer [delete]
|
||||
export const deleteExaCustomer = (data) => {
|
||||
return service({
|
||||
url: "/customer/deleteExaCustomer",
|
||||
method: 'post',
|
||||
url: "/customer/customer",
|
||||
method: 'delete',
|
||||
data
|
||||
})
|
||||
}
|
||||
@@ -59,12 +59,12 @@ export const deleteExaCustomer = (data) => {
|
||||
// @Produce application/json
|
||||
// @Param data body dbModel.ExaCustomer true "获取单一客户信息"
|
||||
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
|
||||
// @Router /customer/getExaCustomer [post]
|
||||
export const getExaCustomer = (data) => {
|
||||
// @Router /customer/customer [get]
|
||||
export const getExaCustomer = (params) => {
|
||||
return service({
|
||||
url: "/customer/getExaCustomer",
|
||||
method: 'post',
|
||||
data
|
||||
url: "/customer/customer",
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
@@ -76,11 +76,11 @@ export const getExaCustomer = (data) => {
|
||||
// @Produce application/json
|
||||
// @Param data body modelInterface.PageInfo true "获取权限客户列表"
|
||||
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
|
||||
// @Router /customer/createExaCustomer [post]
|
||||
export const getExaCustomerList = (data) => {
|
||||
// @Router /customer/customerList [get]
|
||||
export const getExaCustomerList = (params) => {
|
||||
return service({
|
||||
url: "/customer/getExaCustomerList",
|
||||
method: 'post',
|
||||
data
|
||||
url: "/customer/customerList",
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user