diff --git a/src/api/product/topic.ts b/src/api/product/topic.ts new file mode 100644 index 00000000..893fc562 --- /dev/null +++ b/src/api/product/topic.ts @@ -0,0 +1,29 @@ +import type { GetTopicListPrams, Topic } from './types' +import { defHttp } from '@/utils/http/axios' + +export function getTopicList(params: GetTopicListPrams) { + return defHttp.get>({ + url: '/product/topic/page', + params, + }) +} + +export function createTopic(data: Partial) { + return defHttp.post({ + url: '/product/topic/save', + data, + }) +} + +export function updateTopic(data: Partial) { + return defHttp.post({ + url: '/product/topic/update', + data, + }) +} + +export function deleteTopic(id: string) { + return defHttp.post({ + url: `/product/topic/remove?id=${id}`, + }) +} diff --git a/src/views/product/components/CustomTopicFormModal.vue b/src/views/product/components/CustomTopicFormModal.vue new file mode 100644 index 00000000..b8fe4231 --- /dev/null +++ b/src/views/product/components/CustomTopicFormModal.vue @@ -0,0 +1,93 @@ + + + diff --git a/src/views/product/components/TopicManage.vue b/src/views/product/components/TopicManage.vue new file mode 100644 index 00000000..4ac2c99d --- /dev/null +++ b/src/views/product/components/TopicManage.vue @@ -0,0 +1,137 @@ + + + diff --git a/src/views/product/components/index.ts b/src/views/product/components/index.ts new file mode 100644 index 00000000..2defe262 --- /dev/null +++ b/src/views/product/components/index.ts @@ -0,0 +1 @@ +export { default as TopicManage } from './TopicManage.vue' diff --git a/src/views/product/detail.vue b/src/views/product/detail.vue new file mode 100644 index 00000000..d04ce55e --- /dev/null +++ b/src/views/product/detail.vue @@ -0,0 +1,92 @@ + + +