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.

30 lines
1.1 KiB

3 years ago
import {axios} from '@/utils/axios';
import {apiUrl} from "@/axios";
import qs from 'qs';
enum Api {
Add = '/cmMarkLabel/add',
AddReturnId = '/cmMarkLabel/addReturnId',
Update = '/cmMarkLabel/update',
Delete = '/cmMarkLabel/delete',
Get = '/cmMarkLabel/get',
GetList = '/cmMarkLabel/getList',
GetPageList = '/cmMarkLabel/getPageList',
}
const CisApiUrl = apiUrl.CisApiUrl;
export const Add = (params?: any) => axios.post(CisApiUrl + Api.Add, qs.stringify(params))
export const AddReturnId = (params?: any) => axios.post(CisApiUrl + Api.AddReturnId, qs.stringify(params))
export const Update = (params?: any) => axios.post(CisApiUrl + Api.Update, qs.stringify(params))
3 years ago
export const Delete = (params?: any) => axios.post(CisApiUrl + Api.Delete,qs.stringify(params))
3 years ago
export const Get = (params?: any) => axios.get(CisApiUrl + Api.Get, {params: params})
export const GetList = (params?: any) => axios.get(CisApiUrl + Api.GetList, {params: params})
export const GetPageList = (params?: any) => axios.get(CisApiUrl + Api.GetPageList, {params: params})