|
|
@ -13,7 +13,7 @@ export default {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
getList(data, pageNum, pageSize) {
|
|
|
|
getList(data, pageNum, pageSize) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: `/tag/tag/list`,
|
|
|
|
url: `/luoo-tag/tag/list`,
|
|
|
|
method: "get",
|
|
|
|
method: "get",
|
|
|
|
params: {
|
|
|
|
params: {
|
|
|
|
...data,
|
|
|
|
...data,
|
|
|
@ -29,7 +29,7 @@ export default {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
getById(id) {
|
|
|
|
getById(id) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: `/tag/${id}`,
|
|
|
|
url: `/luoo-tag/${id}`,
|
|
|
|
method: "get"
|
|
|
|
method: "get"
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -40,7 +40,7 @@ export default {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
create(data) {
|
|
|
|
create(data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: `/tag/tag`,
|
|
|
|
url: `/luoo-tag/tag`,
|
|
|
|
method: "post",
|
|
|
|
method: "post",
|
|
|
|
data
|
|
|
|
data
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -53,7 +53,7 @@ export default {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
update(data) {
|
|
|
|
update(data) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: `/tag/tag/${data.id}`,
|
|
|
|
url: `/luoo-tag/tag/${data.id}`,
|
|
|
|
method: "put",
|
|
|
|
method: "put",
|
|
|
|
data
|
|
|
|
data
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -66,7 +66,7 @@ export default {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
updateStatus(id, state) {
|
|
|
|
updateStatus(id, state) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: `/tag/tag/status/${id}?state=${state}`,
|
|
|
|
url: `/luoo-tag/tag/status/${id}?state=${state}`,
|
|
|
|
method: "put"
|
|
|
|
method: "put"
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -77,7 +77,7 @@ export default {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
delete(id) {
|
|
|
|
delete(id) {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: `/tag/tag/${id}`,
|
|
|
|
url: `/luoo-tag/tag/${id}`,
|
|
|
|
method: "delete"
|
|
|
|
method: "delete"
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -87,7 +87,7 @@ export default {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
createrList() {
|
|
|
|
createrList() {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: "/tag/tag/creator/list",
|
|
|
|
url: "/luoo-tag/tag/creator/list",
|
|
|
|
method: "get"
|
|
|
|
method: "get"
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -97,7 +97,7 @@ export default {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
parentNameList() {
|
|
|
|
parentNameList() {
|
|
|
|
return request({
|
|
|
|
return request({
|
|
|
|
url: "/tag/tag/name",
|
|
|
|
url: "/luoo-tag/tag/name",
|
|
|
|
method: "get"
|
|
|
|
method: "get"
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|