회원 태그 - CRUD API 추가
This commit is contained in:
parent
1d4bcd601d
commit
f66bfd8524
|
@ -1,4 +1,4 @@
|
||||||
# yozm-admin
|
# soda-live-admin
|
||||||
|
|
||||||
## Project setup
|
## Project setup
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"name": "yozm-admin",
|
"name": "soda-live-admin",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "yozm-admin",
|
"name": "soda-live-admin",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.6.5",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "yozm-admin",
|
"name": "soda-live-admin",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
dark
|
dark
|
||||||
>
|
>
|
||||||
<v-spacer />
|
<v-spacer />
|
||||||
<v-toolbar-title>요즘 관리자</v-toolbar-title>
|
<v-toolbar-title>소다라이브 관리자</v-toolbar-title>
|
||||||
<v-spacer />
|
<v-spacer />
|
||||||
</v-app-bar>
|
</v-app-bar>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
|
|
||||||
async function enrollment(formData) {
|
async function enrollment(formData) {
|
||||||
return Vue.axios.post('/account/counselor/tag', formData, {
|
return Vue.axios.post('/admin/member/tag', formData, {
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "multipart/form-data",
|
"Content-Type": "multipart/form-data",
|
||||||
},
|
},
|
||||||
|
@ -9,15 +9,15 @@ async function enrollment(formData) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getTags() {
|
async function getTags() {
|
||||||
return Vue.axios.get('/account/counselor/tag');
|
return Vue.axios.get('/member/tag');
|
||||||
}
|
}
|
||||||
|
|
||||||
async function deleteTag(tagId) {
|
async function deleteTag(tagId) {
|
||||||
return Vue.axios.delete('/account/counselor/tag/' + tagId)
|
return Vue.axios.delete('/admin/member/tag/' + tagId)
|
||||||
}
|
}
|
||||||
|
|
||||||
async function modifyTag(tagId, formData) {
|
async function modifyTag(tagId, formData) {
|
||||||
return Vue.axios.put('/account/counselor/tag/' + tagId, formData, {
|
return Vue.axios.put('/admin/member/tag/' + tagId, formData, {
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "multipart/form-data",
|
"Content-Type": "multipart/form-data",
|
||||||
},
|
},
|
||||||
|
@ -25,7 +25,7 @@ async function modifyTag(tagId, formData) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function updateTagOrders(ids) {
|
async function updateTagOrders(ids) {
|
||||||
return Vue.axios.put('/account/counselor/tag/orders', { ids: ids })
|
return Vue.axios.put('/admin/member/tag/orders', { ids: ids })
|
||||||
}
|
}
|
||||||
|
|
||||||
export { enrollment, getTags, deleteTag, modifyTag, updateTagOrders }
|
export { enrollment, getTags, deleteTag, modifyTag, updateTagOrders }
|
|
@ -28,12 +28,12 @@ const routes = [
|
||||||
{
|
{
|
||||||
path: '/member/list',
|
path: '/member/list',
|
||||||
name: 'MemberList',
|
name: 'MemberList',
|
||||||
component: () => import(/* webpackChunkName: "member" */ '../views/Member/./MemberList')
|
component: () => import(/* webpackChunkName: "member" */ '../views/Member/MemberList')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/creator/tags',
|
path: '/creator/tags',
|
||||||
name: 'CreatorTags',
|
name: 'CreatorTags',
|
||||||
component: () => import(/* webpackChunkName: "counselor" */ '../views/Creator/CreatorTags.vue')
|
component: () => import(/* webpackChunkName: "counselor" */ '../views/Creator/CreatorTags')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/creator/list',
|
path: '/creator/list',
|
||||||
|
|
|
@ -135,11 +135,11 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as api from "@/api/counselor_tag";
|
import * as api from "@/api/creator_tag";
|
||||||
import Draggable from "vuedraggable";
|
import Draggable from "vuedraggable";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "CounselorTags",
|
name: "CreatorTags",
|
||||||
|
|
||||||
components: {Draggable},
|
components: {Draggable},
|
||||||
|
|
||||||
|
|
|
@ -194,7 +194,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as api from "@/api/explorer"
|
import * as api from "@/api/explorer"
|
||||||
import * as creatorTagApi from "@/api/counselor_tag";
|
import * as creatorTagApi from "@/api/creator_tag";
|
||||||
import Draggable from "vuedraggable";
|
import Draggable from "vuedraggable";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
Loading…
Reference in New Issue