1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- import service from '@/utils/request'
- // @Tags SysApi
- // @Summary 删除客户
- // @Security ApiKeyAuth
- // @accept application/json
- // @Produce application/json
- // @Param data body dbModel.ExaCustomer true "删除客户"
- // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
- // @Router /customer/customer [post]
- export const createExaCustomer = (data) => {
- return service({
- url: "/customer/customer",
- method: 'post',
- data
- })
- }
- // @Tags SysApi
- // @Summary 更新客户信息
- // @Security ApiKeyAuth
- // @accept application/json
- // @Produce application/json
- // @Param data body dbModel.ExaCustomer true "更新客户信息"
- // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
- // @Router /customer/customer [put]
- export const updateExaCustomer = (data) => {
- return service({
- url: "/customer/customer",
- method: 'put',
- data
- })
- }
- // @Tags SysApi
- // @Summary 创建客户
- // @Security ApiKeyAuth
- // @accept application/json
- // @Produce application/json
- // @Param data body dbModel.ExaCustomer true "创建客户"
- // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
- // @Router /customer/customer [delete]
- export const deleteExaCustomer = (data) => {
- return service({
- url: "/customer/customer",
- method: 'delete',
- data
- })
- }
- // @Tags SysApi
- // @Summary 获取单一客户信息
- // @Security ApiKeyAuth
- // @accept application/json
- // @Produce application/json
- // @Param data body dbModel.ExaCustomer true "获取单一客户信息"
- // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
- // @Router /customer/customer [get]
- export const getExaCustomer = (params) => {
- return service({
- url: "/customer/customer",
- method: 'get',
- params
- })
- }
- // @Tags SysApi
- // @Summary 获取权限客户列表
- // @Security ApiKeyAuth
- // @accept application/json
- // @Produce application/json
- // @Param data body modelInterface.PageInfo true "获取权限客户列表"
- // @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
- // @Router /customer/customerList [get]
- export const getExaCustomerList = (params) => {
- return service({
- url: "/customer/customerList",
- method: 'get',
- params
- })
- }
|