diff --git a/src/api/hard/hard-spu-category.ts b/src/api/hard/hard-spu-category.ts index 2299a48..f70a074 100644 --- a/src/api/hard/hard-spu-category.ts +++ b/src/api/hard/hard-spu-category.ts @@ -1,41 +1,40 @@ import request from "/@/utils/request" export function fetchList(query?: Object) { - return request({ - url: '/hard/hardSpuCategory/page', - method: 'get', - params: query - }) + return request({ + url: "/hard/hard-spu-category/page", + method: "get", + params: query, + }) } export function addObj(obj?: Object) { - return request({ - url: '/hard/hardSpuCategory', - method: 'post', - data: obj - }) + return request({ + url: "/hard/hard-spu-category", + method: "post", + data: obj, + }) } export function getObj(id?: string) { - return request({ - url: '/hard/hardSpuCategory/' + id, - method: 'get' - }) + return request({ + url: "/hard/hard-spu-category/" + id, + method: "get", + }) } export function delObjs(ids?: Object) { - return request({ - url: '/hard/hardSpuCategory', - method: 'delete', - data: ids - }) + return request({ + url: "/hard/hard-spu-category", + method: "delete", + data: ids, + }) } export function putObj(obj?: Object) { - return request({ - url: '/hard/hardSpuCategory', - method: 'put', - data: obj - }) + return request({ + url: "/hard/hard-spu-category", + method: "put", + data: obj, + }) } - diff --git a/src/api/hard/hard-spu-repertory.ts b/src/api/hard/hard-spu-repertory.ts index 1e04aa2..9aaca89 100644 --- a/src/api/hard/hard-spu-repertory.ts +++ b/src/api/hard/hard-spu-repertory.ts @@ -1,41 +1,40 @@ import request from "/@/utils/request" export function fetchList(query?: Object) { - return request({ - url: '/hard/hardSpuRepertory/page', - method: 'get', - params: query - }) + return request({ + url: "/hard/hard-spu-repertory/page", + method: "get", + params: query, + }) } export function addObj(obj?: Object) { - return request({ - url: '/hard/hardSpuRepertory', - method: 'post', - data: obj - }) + return request({ + url: "/hard/hard-spu-repertory", + method: "post", + data: obj, + }) } export function getObj(id?: string) { - return request({ - url: '/hard/hardSpuRepertory/' + id, - method: 'get' - }) + return request({ + url: "/hard/hard-spu-repertory/" + id, + method: "get", + }) } export function delObjs(ids?: Object) { - return request({ - url: '/hard/hardSpuRepertory', - method: 'delete', - data: ids - }) + return request({ + url: "/hard/hard-spu-repertory", + method: "delete", + data: ids, + }) } export function putObj(obj?: Object) { - return request({ - url: '/hard/hardSpuRepertory', - method: 'put', - data: obj - }) + return request({ + url: "/hard/hard-spu-repertory", + method: "put", + data: obj, + }) } - diff --git a/src/api/hard/hard-spu.ts b/src/api/hard/hard-spu.ts index 1964397..3e60c0f 100644 --- a/src/api/hard/hard-spu.ts +++ b/src/api/hard/hard-spu.ts @@ -1,41 +1,40 @@ import request from "/@/utils/request" export function fetchList(query?: Object) { - return request({ - url: '/hard/hardSpu/page', - method: 'get', - params: query - }) + return request({ + url: "/hard/hard-spu/page", + method: "get", + params: query, + }) } export function addObj(obj?: Object) { - return request({ - url: '/hard/hardSpu', - method: 'post', - data: obj - }) + return request({ + url: "/hard/hard-spu", + method: "post", + data: obj, + }) } export function getObj(id?: string) { - return request({ - url: '/hard/hardSpu/' + id, - method: 'get' - }) + return request({ + url: "/hard/hard-spu/" + id, + method: "get", + }) } export function delObjs(ids?: Object) { - return request({ - url: '/hard/hardSpu', - method: 'delete', - data: ids - }) + return request({ + url: "/hard/hard-spu", + method: "delete", + data: ids, + }) } export function putObj(obj?: Object) { - return request({ - url: '/hard/hardSpu', - method: 'put', - data: obj - }) + return request({ + url: "/hard/hard-spu", + method: "put", + data: obj, + }) } -