nayota-show-sdk 1.3.43 → 1.3.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/api/tag.js +6 -6
  2. package/package.json +1 -1
package/api/tag.js CHANGED
@@ -33,7 +33,7 @@ import { requestShow } from '../utils'
33
33
  */
34
34
  export function list(query) {
35
35
  return requestShow({
36
- url: '/departTags',
36
+ url: '/tags',
37
37
  method: 'get',
38
38
  params: query
39
39
  })
@@ -47,7 +47,7 @@ export function list(query) {
47
47
  */
48
48
  export function create(data) {
49
49
  return requestShow({
50
- url: '/departTags',
50
+ url: '/tags',
51
51
  method: 'post',
52
52
  data
53
53
  })
@@ -61,7 +61,7 @@ export function create(data) {
61
61
  */
62
62
  export function getOne(id) {
63
63
  return requestShow({
64
- url: `/departTags/${id}`,
64
+ url: `/tags/${id}`,
65
65
  method: 'get'
66
66
  })
67
67
  }
@@ -74,7 +74,7 @@ export function getOne(id) {
74
74
  */
75
75
  export function updateOne(data) {
76
76
  return requestShow({
77
- url: `/departTags/${data._id}`,
77
+ url: `/tags/${data._id}`,
78
78
  method: 'put',
79
79
  data
80
80
  })
@@ -87,7 +87,7 @@ export function updateOne(data) {
87
87
  */
88
88
  export function deleteOne(id) {
89
89
  return requestShow({
90
- url: `/departTags/${id}`,
90
+ url: `/tags/${id}`,
91
91
  method: 'delete'
92
92
  })
93
93
  }
@@ -99,7 +99,7 @@ export function deleteOne(id) {
99
99
  */
100
100
  export function deleteMany(ids) {
101
101
  return requestShow({
102
- url: '/departTags',
102
+ url: '/tags',
103
103
  method: 'delete',
104
104
  data: ids // delete传递主体要包含在data里
105
105
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nayota-show-sdk",
3
- "version": "1.3.43",
3
+ "version": "1.3.44",
4
4
  "description": "nayota-show-server rest-api",
5
5
  "type": "module",
6
6
  "main": "index.js",