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