功能:收口小程序前后台安全与防重复提交

This commit is contained in:
xiaowang
2026-04-20 16:02:57 +08:00
parent eb1c209d79
commit a3df262fae
237 changed files with 14068 additions and 728 deletions
+44
View File
@@ -0,0 +1,44 @@
const request = require('../utils/request')
module.exports = {
listAllTags() {
return request({
url: '/tag/list/all'
})
},
listTagsByShopId(shopId) {
return request({
url: `/tag/list/by-shop/${shopId}`
})
},
getTagById(id) {
return request({
url: `/tag/get/${id}`
})
},
createTag(data) {
return request({
url: '/tag/create',
method: 'POST',
data
})
},
updateTag(id, data) {
return request({
url: `/tag/update/${id}`,
method: 'PUT',
data
})
},
deleteTag(id) {
return request({
url: `/tag/delete/${id}`,
method: 'DELETE'
})
}
}