From da363831e843a4dbce0ed6ff6a67faca42468ae9 Mon Sep 17 00:00:00 2001 From: khy <2908249413@qq.com> Date: Tue, 15 Oct 2024 19:49:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=98=E8=B4=B9=E4=BC=9A=E5=91=98=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=EF=BC=8C=E6=9D=83=E7=9B=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/mall/promotion/memberbenefit/index.ts | 3 +- yudao-admin-vue3/src/api/member/type/index.ts | 45 ++++ .../memberbenefit/PaidMemberBenefitForm.vue | 30 ++- .../mall/promotion/memberbenefit/index.vue | 56 ++-- .../src/views/member/type/cardForm.vue | 112 ++++++++ .../src/views/member/type/index.vue | 251 ++++++++++++++++++ .../member/enums/ErrorCodeConstants.java | 1 + .../vo/PaidMemberBenefitPageReqVO.java | 7 +- .../vo/PaidMemberBenefitRespVO.java | 10 +- .../vo/PaidMemberBenefitSaveReqVO.java | 22 +- .../PaidMemberCardTypeController.java | 95 +++++++ .../vo/PaidMemberCardTypePageReqVO.java | 35 +++ .../vo/PaidMemberCardTypeRespVO.java | 46 ++++ .../vo/PaidMemberCardTypeSaveReqVO.java | 38 +++ .../memberbenefit/PaidMemberBenefitDO.java | 8 +- .../membercardtype/PaidMemberCardTypeDO.java | 55 ++++ .../PaidMemberBenefitMapper.java | 3 +- .../PaidMemberCardTypeMapper.java | 29 ++ .../PaidMemberCardTypeService.java | 55 ++++ .../PaidMemberCardTypeServiceImpl.java | 71 +++++ 20 files changed, 913 insertions(+), 59 deletions(-) create mode 100644 yudao-admin-vue3/src/api/member/type/index.ts create mode 100644 yudao-admin-vue3/src/views/member/type/cardForm.vue create mode 100644 yudao-admin-vue3/src/views/member/type/index.vue create mode 100644 yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/admin/membercardtype/PaidMemberCardTypeController.java create mode 100644 yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/admin/membercardtype/vo/PaidMemberCardTypePageReqVO.java create mode 100644 yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/admin/membercardtype/vo/PaidMemberCardTypeRespVO.java create mode 100644 yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/controller/admin/membercardtype/vo/PaidMemberCardTypeSaveReqVO.java create mode 100644 yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/dal/dataobject/membercardtype/PaidMemberCardTypeDO.java create mode 100644 yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/dal/mysql/membercardtype/PaidMemberCardTypeMapper.java create mode 100644 yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/membercardtype/PaidMemberCardTypeService.java create mode 100644 yudao-module-member/yudao-module-member-biz/src/main/java/cn/iocoder/yudao/module/member/service/membercardtype/PaidMemberCardTypeServiceImpl.java diff --git a/yudao-admin-vue3/src/api/mall/promotion/memberbenefit/index.ts b/yudao-admin-vue3/src/api/mall/promotion/memberbenefit/index.ts index bb3be5e..1ccd25c 100644 --- a/yudao-admin-vue3/src/api/mall/promotion/memberbenefit/index.ts +++ b/yudao-admin-vue3/src/api/mall/promotion/memberbenefit/index.ts @@ -3,7 +3,8 @@ import request from '@/config/axios' // 付费会员权益 VO export interface PaidMemberBenefitVO { id: number // 编号 - name: string // 名称 + benName: string // 权益名称 + showName: string // 展示名称 iconUrl: string // 图标地址 intro: string // 描述 status: boolean // 状态:(默认)0隐藏 1显示 diff --git a/yudao-admin-vue3/src/api/member/type/index.ts b/yudao-admin-vue3/src/api/member/type/index.ts new file mode 100644 index 0000000..f473c73 --- /dev/null +++ b/yudao-admin-vue3/src/api/member/type/index.ts @@ -0,0 +1,45 @@ +import request from '@/config/axios' + +// 会员卡类型 VO +export interface cardVO { + id: number // id + name: string // 会员名 + vid: string // 有效期 + originalPrice: number // 原价 + specialPrice: number // 优惠价 + sort: string // 排序 + status: number// 是否禁用 +} + +// 会员卡类型 API +export const cardApi = { + // 查询会员卡类型分页 + getcardPage: async (params: any) => { + return await request.get({ url: `/paid/member/card/type/page`, params }) + }, + + // 查询会员卡类型详情 + getcard: async (id: number) => { + return await request.get({ url: `/paid/member/card/type/get?id=` + id }) + }, + + // 新增会员卡类型 + createcard: async (data: cardVO) => { + return await request.post({ url: `/paid/member/card/type/create`, data }) + }, + + // 修改会员卡类型 + updatecard: async (data: cardVO) => { + return await request.put({ url: `/paid/member/card/type/update`, data }) + }, + + // 删除会员卡类型 + deletecard: async (id: number) => { + return await request.delete({ url: `/paid/member/card/type/delete?id=` + id }) + }, + + // 导出会员卡类型 Excel + exportcard: async (params) => { + return await request.download({ url: `/paid/member/card/type/export-excel`, params }) + }, +} diff --git a/yudao-admin-vue3/src/views/mall/promotion/memberbenefit/PaidMemberBenefitForm.vue b/yudao-admin-vue3/src/views/mall/promotion/memberbenefit/PaidMemberBenefitForm.vue index cd24106..6c18c50 100644 --- a/yudao-admin-vue3/src/views/mall/promotion/memberbenefit/PaidMemberBenefitForm.vue +++ b/yudao-admin-vue3/src/views/mall/promotion/memberbenefit/PaidMemberBenefitForm.vue @@ -7,15 +7,15 @@ label-width="100px" v-loading="formLoading" > - - + + + + + - - - - + + + - - +