templates.sword.service.js.vm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blade-starter-develop Show documentation
Show all versions of blade-starter-develop Show documentation
blade-tool is a powerful toolbox for SpringBlade
#set($params="$" + "{stringify" + "(params)" + "}")
import { stringify } from 'qs';
import func from '../utils/Func';
import request from '../utils/request';
export async function list(params) {
return request(`/api/$!{serviceName}/$!{entityKey}/list?$!{params}`);
}
export async function submit(params) {
return request('/api/$!{serviceName}/$!{entityKey}/submit', {
method: 'POST',
body: params,
});
}
export async function detail(params) {
return request(`/api/$!{serviceName}/$!{entityKey}/detail?$!{params}`);
}
export async function remove(params) {
return request('/api/$!{serviceName}/$!{entityKey}/remove', {
method: 'POST',
body: func.toFormData(params),
});
}