All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.templates.sword.service.js.vm Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
#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/$!{cfg.serviceName}/$!{cfg.entityKey}/list?$!{params}`);
}

export async function submit(params) {
  return request('/api/$!{cfg.serviceName}/$!{cfg.entityKey}/submit', {
    method: 'POST',
    body: params,
  });
}

export async function detail(params) {
  return request(`/api/$!{cfg.serviceName}/$!{cfg.entityKey}/detail?$!{params}`);
}

export async function remove(params) {
  return request('/api/$!{cfg.serviceName}/$!{cfg.entityKey}/remove', {
    method: 'POST',
    body: func.toFormData(params),
  });
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy