diff --git a/index.html b/index.html index 8cf1f38..36ed4c2 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ - +
diff --git a/src/api/maku/t_book.ts b/src/api/maku/t_book.ts new file mode 100644 index 0000000..530d647 --- /dev/null +++ b/src/api/maku/t_book.ts @@ -0,0 +1,13 @@ +import service from '@/utils/request' + +export const useT_bookApi = (id: number) => { + return service.get('/maku/t_book/' + id) +} + +export const useT_bookSubmitApi = (dataForm: any) => { + if (dataForm.id) { + return service.put('/maku/t_book', dataForm) + } else { + return service.post('/maku/t_book', dataForm) + } +} \ No newline at end of file diff --git a/src/api/maku/t_book_collection.ts b/src/api/maku/t_book_collection.ts new file mode 100644 index 0000000..14291b5 --- /dev/null +++ b/src/api/maku/t_book_collection.ts @@ -0,0 +1,13 @@ +import service from '@/utils/request' + +export const useT_book_collectionApi = (id: number) => { + return service.get('/maku/t_book_collection/' + id) +} + +export const useT_book_collectionSubmitApi = (dataForm: any) => { + if (dataForm.id) { + return service.put('/maku/t_book_collection', dataForm) + } else { + return service.post('/maku/t_book_collection', dataForm) + } +} \ No newline at end of file diff --git a/src/api/maku/t_book_comment.ts b/src/api/maku/t_book_comment.ts new file mode 100644 index 0000000..84423ca --- /dev/null +++ b/src/api/maku/t_book_comment.ts @@ -0,0 +1,13 @@ +import service from '@/utils/request' + +export const useT_book_commentApi = (id: number) => { + return service.get('/maku/t_book_comment/' + id) +} + +export const useT_book_commentSubmitApi = (dataForm: any) => { + if (dataForm.id) { + return service.put('/maku/t_book_comment', dataForm) + } else { + return service.post('/maku/t_book_comment', dataForm) + } +} \ No newline at end of file diff --git a/src/api/maku/t_purchase.ts b/src/api/maku/t_purchase.ts new file mode 100644 index 0000000..517026f --- /dev/null +++ b/src/api/maku/t_purchase.ts @@ -0,0 +1,13 @@ +import service from '@/utils/request' + +export const useT_purchaseApi = (id: number) => { + return service.get('/maku/t_purchase/' + id) +} + +export const useT_purchaseSubmitApi = (dataForm: any) => { + if (dataForm.id) { + return service.put('/maku/t_purchase', dataForm) + } else { + return service.post('/maku/t_purchase', dataForm) + } +} \ No newline at end of file diff --git a/src/api/maku/t_purchase_details.ts b/src/api/maku/t_purchase_details.ts new file mode 100644 index 0000000..0dcc45f --- /dev/null +++ b/src/api/maku/t_purchase_details.ts @@ -0,0 +1,13 @@ +import service from '@/utils/request' + +export const useT_purchase_detailsApi = (id: number) => { + return service.get('/maku/t_purchase_details/' + id) +} + +export const useT_purchase_detailsSubmitApi = (dataForm: any) => { + if (dataForm.id) { + return service.put('/maku/t_purchase_details', dataForm) + } else { + return service.post('/maku/t_purchase_details', dataForm) + } +} \ No newline at end of file diff --git a/src/api/maku/t_shopping_trolley.ts b/src/api/maku/t_shopping_trolley.ts new file mode 100644 index 0000000..e875d78 --- /dev/null +++ b/src/api/maku/t_shopping_trolley.ts @@ -0,0 +1,13 @@ +import service from '@/utils/request' + +export const useT_shopping_trolleyApi = (id: number) => { + return service.get('/maku/t_shopping_trolley/' + id) +} + +export const useT_shopping_trolleySubmitApi = (dataForm: any) => { + if (dataForm.id) { + return service.put('/maku/t_shopping_trolley', dataForm) + } else { + return service.post('/maku/t_shopping_trolley', dataForm) + } +} \ No newline at end of file diff --git a/src/api/maku/t_user.ts b/src/api/maku/t_user.ts new file mode 100644 index 0000000..5eac353 --- /dev/null +++ b/src/api/maku/t_user.ts @@ -0,0 +1,13 @@ +import service from '@/utils/request' + +export const useT_userApi = (id: number) => { + return service.get('/maku/t_user/' + id) +} + +export const useT_userSubmitApi = (dataForm: any) => { + if (dataForm.id) { + return service.put('/maku/t_user', dataForm) + } else { + return service.post('/maku/t_user', dataForm) + } +} \ No newline at end of file diff --git a/src/views/maku/t_book/add-or-update.vue b/src/views/maku/t_book/add-or-update.vue new file mode 100644 index 0000000..a952b4b --- /dev/null +++ b/src/views/maku/t_book/add-or-update.vue @@ -0,0 +1,110 @@ + +