diff --git a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/MpMaterialController.http b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/MpMaterialController.http index e69de29bb..74b8f40b6 100644 --- a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/MpMaterialController.http +++ b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/MpMaterialController.http @@ -0,0 +1,5 @@ +### 请求 /mp/material/page 接口 => 成功 +GET {{baseUrl}}/mp/material/page?permanent=true&pageNo=1&pageSize=10 +Content-Type: application/json +Authorization: Bearer {{token}} +tenant-id: {{adminTenentId}} diff --git a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/MpMaterialController.java b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/MpMaterialController.java index 2b07d3625..5722f2e0b 100644 --- a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/MpMaterialController.java +++ b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/MpMaterialController.java @@ -1,15 +1,15 @@ package cn.iocoder.yudao.module.mp.controller.admin.material; import cn.iocoder.yudao.framework.common.pojo.CommonResult; -import cn.iocoder.yudao.module.mp.controller.admin.material.vo.MpMaterialUploadPermanentReqVO; -import cn.iocoder.yudao.module.mp.controller.admin.material.vo.MpMaterialUploadRespVO; -import cn.iocoder.yudao.module.mp.controller.admin.material.vo.MpMaterialUploadTemporaryReqVO; +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.module.mp.controller.admin.material.vo.*; import cn.iocoder.yudao.module.mp.convert.material.MpMaterialConvert; import cn.iocoder.yudao.module.mp.dal.dataobject.material.MpMaterialDO; import cn.iocoder.yudao.module.mp.service.material.MpMaterialService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -45,4 +45,11 @@ public class MpMaterialController { return success(MpMaterialConvert.INSTANCE.convert(material)); } + @ApiOperation("获得素材分页") + @GetMapping("/page") + public CommonResult> getMaterialPage(@Valid MpMaterialPageReqVO pageReqVO) { + PageResult pageResult = mpMaterialService.getMaterialPage(pageReqVO); + return success(MpMaterialConvert.INSTANCE.convertPage(pageResult)); + } + } diff --git a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/vo/MpMaterialPageReqVO.java b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/vo/MpMaterialPageReqVO.java new file mode 100644 index 000000000..e4eb2bd7b --- /dev/null +++ b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/vo/MpMaterialPageReqVO.java @@ -0,0 +1,22 @@ +package cn.iocoder.yudao.module.mp.controller.admin.material.vo; + +import cn.iocoder.yudao.framework.common.pojo.PageParam; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; + +@ApiModel("管理后台 - 公众号素材的分页 Request VO") +@Data +@EqualsAndHashCode(callSuper = true) +@ToString(callSuper = true) +public class MpMaterialPageReqVO extends PageParam { + + @ApiModelProperty(value = "是否永久", example = "true") + private Boolean permanent; + + @ApiModelProperty(value = "文件类型", example = "image", notes = "参见 WxConsts.MediaFileType 枚举") + private String type; + +} diff --git a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/vo/MpMaterialRespVO.java b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/vo/MpMaterialRespVO.java new file mode 100644 index 000000000..2ee8fa9ee --- /dev/null +++ b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/material/vo/MpMaterialRespVO.java @@ -0,0 +1,42 @@ +package cn.iocoder.yudao.module.mp.controller.admin.material.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +@ApiModel("管理后台 - 公众号素材 Response VO") +@Data +public class MpMaterialRespVO { + + @ApiModelProperty(value = "主键", required = true, example = "1024") + private Long id; + + @ApiModelProperty(value = "公众号账号的编号", required = true, example = "1") + private Long accountId; + @ApiModelProperty(value = "公众号账号的 appId", required = true, example = "wx1234567890") + private String appId; + + @ApiModelProperty(value = "素材的 media_id", required = true, example = "123") + private String mediaId; + + @ApiModelProperty(value = "文件类型", required = true, example = "image", notes = "参见 WxConsts.MediaFileType 枚举") + private String type; + + @ApiModelProperty(value = "是否永久", required = true, example = "true", notes = "true - 永久;false - 临时") + private Boolean permanent; + + @ApiModelProperty(value = "素材的 URL", required = true, example = "https://www.iocoder.cn/1.png") + private String url; + + + @ApiModelProperty(value = "名字", example = "yunai.png") + private String name; + + @ApiModelProperty(value = "公众号文件 URL", example = "https://mmbiz.qpic.cn/xxx.mp3", notes = "只有【永久素材】使用") + private String mpUrl; + + @ApiModelProperty(value = "视频素材的标题", example = "我是标题", notes = "只有【永久素材】使用") + private String title; + @ApiModelProperty(value = "视频素材的描述", example = "我是介绍", notes = "只有【永久素材】使用") + private String introduction; +} diff --git a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/convert/material/MpMaterialConvert.java b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/convert/material/MpMaterialConvert.java index 523b51fd0..ca4f69c3d 100644 --- a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/convert/material/MpMaterialConvert.java +++ b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/convert/material/MpMaterialConvert.java @@ -1,5 +1,7 @@ package cn.iocoder.yudao.module.mp.convert.material; +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.module.mp.controller.admin.material.vo.MpMaterialRespVO; import cn.iocoder.yudao.module.mp.controller.admin.material.vo.MpMaterialUploadRespVO; import cn.iocoder.yudao.module.mp.dal.dataobject.account.MpAccountDO; import cn.iocoder.yudao.module.mp.dal.dataobject.material.MpMaterialDO; @@ -20,8 +22,10 @@ public interface MpMaterialConvert { @Mapping(target = "id", ignore = true), @Mapping(source = "account.id", target = "accountId"), @Mapping(source = "account.appId", target = "appId"), + @Mapping(source = "name", target = "name") }) - MpMaterialDO convert(String mediaId, String type, String url, MpAccountDO account); + MpMaterialDO convert(String mediaId, String type, String url, MpAccountDO account, + String name); @Mappings({ @Mapping(target = "id", ignore = true), @@ -38,4 +42,6 @@ public interface MpMaterialConvert { return new WxMpMaterial(name, file, title, introduction); } + PageResult convertPage(PageResult page); + } diff --git a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/dal/dataobject/material/MpMaterialDO.java b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/dal/dataobject/material/MpMaterialDO.java index 0f599c019..95e0bedf8 100644 --- a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/dal/dataobject/material/MpMaterialDO.java +++ b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/dal/dataobject/material/MpMaterialDO.java @@ -69,9 +69,13 @@ public class MpMaterialDO extends BaseDO { /** * 名字 * - * 只有【永久素材】使用 + * 永久素材:非空 + * 临时素材:可能为空。 + * 1. 为空的情况:用户主动发送的图片、语音等 + * 2. 非空的情况:主动发送给用户的图片、语音等 */ private String name; + /** * 公众号文件 URL * diff --git a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/dal/mysql/material/MpMaterialMapper.java b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/dal/mysql/material/MpMaterialMapper.java index 185ded2f7..5ff70b753 100644 --- a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/dal/mysql/material/MpMaterialMapper.java +++ b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/dal/mysql/material/MpMaterialMapper.java @@ -1,6 +1,9 @@ package cn.iocoder.yudao.module.mp.dal.mysql.material; +import cn.iocoder.yudao.framework.common.pojo.PageResult; import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; +import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; +import cn.iocoder.yudao.module.mp.controller.admin.material.vo.MpMaterialPageReqVO; import cn.iocoder.yudao.module.mp.dal.dataobject.material.MpMaterialDO; import org.apache.ibatis.annotations.Mapper; @@ -12,4 +15,10 @@ public interface MpMaterialMapper extends BaseMapperX { MpMaterialDO::getMediaId, mediaId); } + default PageResult selectPage(MpMaterialPageReqVO pageReqVO) { + return selectPage(pageReqVO, new LambdaQueryWrapperX() + .eqIfPresent(MpMaterialDO::getPermanent, pageReqVO.getPermanent()) + .eqIfPresent(MpMaterialDO::getType, pageReqVO.getType())); + } + } diff --git a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/service/material/MpMaterialService.java b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/service/material/MpMaterialService.java index ec7023af0..5f574f8b3 100644 --- a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/service/material/MpMaterialService.java +++ b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/service/material/MpMaterialService.java @@ -1,5 +1,7 @@ package cn.iocoder.yudao.module.mp.service.material; +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.module.mp.controller.admin.material.vo.MpMaterialPageReqVO; import cn.iocoder.yudao.module.mp.controller.admin.material.vo.MpMaterialUploadPermanentReqVO; import cn.iocoder.yudao.module.mp.controller.admin.material.vo.MpMaterialUploadTemporaryReqVO; import cn.iocoder.yudao.module.mp.dal.dataobject.material.MpMaterialDO; @@ -45,4 +47,12 @@ public interface MpMaterialService { */ MpMaterialDO uploadPermanentMaterial(@Valid MpMaterialUploadPermanentReqVO reqVO) throws IOException; + /** + * 获得素材分页 + * + * @param pageReqVO 分页请求 + * @return 素材分页 + */ + PageResult getMaterialPage(MpMaterialPageReqVO pageReqVO); + } diff --git a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/service/material/MpMaterialServiceImpl.java b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/service/material/MpMaterialServiceImpl.java index 371638e64..af46134aa 100644 --- a/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/service/material/MpMaterialServiceImpl.java +++ b/yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/service/material/MpMaterialServiceImpl.java @@ -4,7 +4,9 @@ import cn.hutool.core.io.FileTypeUtil; import cn.hutool.core.io.FileUtil; import cn.hutool.core.util.ObjUtil; import cn.hutool.core.util.StrUtil; +import cn.iocoder.yudao.framework.common.pojo.PageResult; import cn.iocoder.yudao.module.infra.api.file.FileApi; +import cn.iocoder.yudao.module.mp.controller.admin.material.vo.MpMaterialPageReqVO; import cn.iocoder.yudao.module.mp.controller.admin.material.vo.MpMaterialUploadPermanentReqVO; import cn.iocoder.yudao.module.mp.controller.admin.material.vo.MpMaterialUploadTemporaryReqVO; import cn.iocoder.yudao.module.mp.convert.material.MpMaterialConvert; @@ -67,7 +69,7 @@ public class MpMaterialServiceImpl implements MpMaterialService { return null; } MpAccountDO account = mpAccountService.getRequiredAccount(accountId); - material = MpMaterialConvert.INSTANCE.convert(mediaId, type, url, account) + material = MpMaterialConvert.INSTANCE.convert(mediaId, type, url, account, null) .setPermanent(false); mpMaterialMapper.insert(material); @@ -100,8 +102,8 @@ public class MpMaterialServiceImpl implements MpMaterialService { // 第二步,存储到数据库 MpAccountDO account = mpAccountService.getRequiredAccount(reqVO.getAccountId()); - MpMaterialDO material = MpMaterialConvert.INSTANCE.convert(mediaId, reqVO.getType(), url, account) - .setPermanent(false); + MpMaterialDO material = MpMaterialConvert.INSTANCE.convert(mediaId, reqVO.getType(), url, account, + reqVO.getFile().getName()).setPermanent(false); mpMaterialMapper.insert(material); return material; } @@ -139,6 +141,11 @@ public class MpMaterialServiceImpl implements MpMaterialService { return material; } + @Override + public PageResult getMaterialPage(MpMaterialPageReqVO pageReqVO) { + return mpMaterialMapper.selectPage(pageReqVO); + } + /** * 下载微信媒体文件的内容,并上传到文件服务 * diff --git a/yudao-ui-admin/src/api/mp/material.js b/yudao-ui-admin/src/api/mp/material.js new file mode 100644 index 000000000..03662f906 --- /dev/null +++ b/yudao-ui-admin/src/api/mp/material.js @@ -0,0 +1,10 @@ +import request from '@/utils/request' + +// 获得公众号素材分页 +export function getMaterialPage(query) { + return request({ + url: '/mp/material/page', + method: 'get', + params: query + }) +} diff --git a/yudao-ui-admin/src/api/wechatMp/wxFansMsgRes.js b/yudao-ui-admin/src/api/wechatMp/wxFansMsgRes.js deleted file mode 100644 index d0f36f410..000000000 --- a/yudao-ui-admin/src/api/wechatMp/wxFansMsgRes.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/utils/request' - -// 创建回复粉丝消息历史表 -export function createWxFansMsgRes(data) { - return request({ - url: '/wechatMp/wx-fans-msg-res/create', - method: 'post', - data: data - }) -} - -// 更新回复粉丝消息历史表 -export function updateWxFansMsgRes(data) { - return request({ - url: '/wechatMp/wx-fans-msg-res/update', - method: 'put', - data: data - }) -} - -// 删除回复粉丝消息历史表 -export function deleteWxFansMsgRes(id) { - return request({ - url: '/wechatMp/wx-fans-msg-res/delete?id=' + id, - method: 'delete' - }) -} - -// 获得回复粉丝消息历史表 -export function getWxFansMsgRes(id) { - return request({ - url: '/wechatMp/wx-fans-msg-res/get?id=' + id, - method: 'get' - }) -} - -// 获得回复粉丝消息历史表 分页 -export function getWxFansMsgResPage(query) { - return request({ - url: '/wechatMp/wx-fans-msg-res/page', - method: 'get', - params: query - }) -} - -// 导出回复粉丝消息历史表 Excel -export function exportWxFansMsgResExcel(query) { - return request({ - url: '/wechatMp/wx-fans-msg-res/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/yudao-ui-admin/src/api/wechatMp/wxMediaUpload.js b/yudao-ui-admin/src/api/wechatMp/wxMediaUpload.js deleted file mode 100644 index d2f17ebbf..000000000 --- a/yudao-ui-admin/src/api/wechatMp/wxMediaUpload.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/utils/request' - -// 创建微信素材上传表 -export function createWxMediaUpload(data) { - return request({ - url: '/wechatMp/wx-media-upload/create', - method: 'post', - data: data - }) -} - -// 更新微信素材上传表 -export function updateWxMediaUpload(data) { - return request({ - url: '/wechatMp/wx-media-upload/update', - method: 'put', - data: data - }) -} - -// 删除微信素材上传表 -export function deleteWxMediaUpload(id) { - return request({ - url: '/wechatMp/wx-media-upload/delete?id=' + id, - method: 'delete' - }) -} - -// 获得微信素材上传表 -export function getWxMediaUpload(id) { - return request({ - url: '/wechatMp/wx-media-upload/get?id=' + id, - method: 'get' - }) -} - -// 获得微信素材上传表 分页 -export function getWxMediaUploadPage(query) { - return request({ - url: '/wechatMp/wx-media-upload/page', - method: 'get', - params: query - }) -} - -// 导出微信素材上传表 Excel -export function exportWxMediaUploadExcel(query) { - return request({ - url: '/wechatMp/wx-media-upload/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/yudao-ui-admin/src/api/wechatMp/wxMenu.js b/yudao-ui-admin/src/api/wechatMp/wxMenu.js deleted file mode 100644 index 59d3794d6..000000000 --- a/yudao-ui-admin/src/api/wechatMp/wxMenu.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/utils/request' - -// 创建微信菜单 -export function createWxMenu(data) { - return request({ - url: '/wechatMp/wx-menu/create', - method: 'post', - data: data - }) -} - -// 更新微信菜单 -export function updateWxMenu(data) { - return request({ - url: '/wechatMp/wx-menu/update', - method: 'put', - data: data - }) -} - -// 删除微信菜单 -export function deleteWxMenu(id) { - return request({ - url: '/wechatMp/wx-menu/delete?id=' + id, - method: 'delete' - }) -} - -// 获得微信菜单 -export function getWxMenu(id) { - return request({ - url: '/wechatMp/wx-menu/get?id=' + id, - method: 'get' - }) -} - -// 获得微信菜单分页 -export function getWxMenuPage(query) { - return request({ - url: '/wechatMp/wx-menu/page', - method: 'get', - params: query - }) -} - -// 导出微信菜单 Excel -export function exportWxMenuExcel(query) { - return request({ - url: '/wechatMp/wx-menu/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/yudao-ui-admin/src/api/wechatMp/wxNewsArticleItem.js b/yudao-ui-admin/src/api/wechatMp/wxNewsArticleItem.js deleted file mode 100644 index 02461d830..000000000 --- a/yudao-ui-admin/src/api/wechatMp/wxNewsArticleItem.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/utils/request' - -// 创建图文消息文章列表表 -export function createWxNewsArticleItem(data) { - return request({ - url: '/wechatMp/wx-news-article-item/create', - method: 'post', - data: data - }) -} - -// 更新图文消息文章列表表 -export function updateWxNewsArticleItem(data) { - return request({ - url: '/wechatMp/wx-news-article-item/update', - method: 'put', - data: data - }) -} - -// 删除图文消息文章列表表 -export function deleteWxNewsArticleItem(id) { - return request({ - url: '/wechatMp/wx-news-article-item/delete?id=' + id, - method: 'delete' - }) -} - -// 获得图文消息文章列表表 -export function getWxNewsArticleItem(id) { - return request({ - url: '/wechatMp/wx-news-article-item/get?id=' + id, - method: 'get' - }) -} - -// 获得图文消息文章列表表 分页 -export function getWxNewsArticleItemPage(query) { - return request({ - url: '/wechatMp/wx-news-article-item/page', - method: 'get', - params: query - }) -} - -// 导出图文消息文章列表表 Excel -export function exportWxNewsArticleItemExcel(query) { - return request({ - url: '/wechatMp/wx-news-article-item/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/yudao-ui-admin/src/api/wechatMp/wxNewsTemplate.js b/yudao-ui-admin/src/api/wechatMp/wxNewsTemplate.js deleted file mode 100644 index 32636c062..000000000 --- a/yudao-ui-admin/src/api/wechatMp/wxNewsTemplate.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/utils/request' - -// 创建图文消息模板 -export function createWxNewsTemplate(data) { - return request({ - url: '/wechatMp/wx-news-template/create', - method: 'post', - data: data - }) -} - -// 更新图文消息模板 -export function updateWxNewsTemplate(data) { - return request({ - url: '/wechatMp/wx-news-template/update', - method: 'put', - data: data - }) -} - -// 删除图文消息模板 -export function deleteWxNewsTemplate(id) { - return request({ - url: '/wechatMp/wx-news-template/delete?id=' + id, - method: 'delete' - }) -} - -// 获得图文消息模板 -export function getWxNewsTemplate(id) { - return request({ - url: '/wechatMp/wx-news-template/get?id=' + id, - method: 'get' - }) -} - -// 获得图文消息模板分页 -export function getWxNewsTemplatePage(query) { - return request({ - url: '/wechatMp/wx-news-template/page', - method: 'get', - params: query - }) -} - -// 导出图文消息模板 Excel -export function exportWxNewsTemplateExcel(query) { - return request({ - url: '/wechatMp/wx-news-template/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/yudao-ui-admin/src/api/wechatMp/wxReceiveText.js b/yudao-ui-admin/src/api/wechatMp/wxReceiveText.js deleted file mode 100644 index 8fae193bc..000000000 --- a/yudao-ui-admin/src/api/wechatMp/wxReceiveText.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/utils/request' - -// 创建回复关键字 -export function createWxReceiveText(data) { - return request({ - url: '/wechatMp/wx-receive-text/create', - method: 'post', - data: data - }) -} - -// 更新回复关键字 -export function updateWxReceiveText(data) { - return request({ - url: '/wechatMp/wx-receive-text/update', - method: 'put', - data: data - }) -} - -// 删除回复关键字 -export function deleteWxReceiveText(id) { - return request({ - url: '/wechatMp/wx-receive-text/delete?id=' + id, - method: 'delete' - }) -} - -// 获得回复关键字 -export function getWxReceiveText(id) { - return request({ - url: '/wechatMp/wx-receive-text/get?id=' + id, - method: 'get' - }) -} - -// 获得回复关键字分页 -export function getWxReceiveTextPage(query) { - return request({ - url: '/wechatMp/wx-receive-text/page', - method: 'get', - params: query - }) -} - -// 导出回复关键字 Excel -export function exportWxReceiveTextExcel(query) { - return request({ - url: '/wechatMp/wx-receive-text/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/yudao-ui-admin/src/api/wechatMp/wxSubscribeText.js b/yudao-ui-admin/src/api/wechatMp/wxSubscribeText.js deleted file mode 100644 index 2dbd8fa2d..000000000 --- a/yudao-ui-admin/src/api/wechatMp/wxSubscribeText.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/utils/request' - -// 创建关注欢迎语 -export function createWxSubscribeText(data) { - return request({ - url: '/wechatMp/wx-subscribe-text/create', - method: 'post', - data: data - }) -} - -// 更新关注欢迎语 -export function updateWxSubscribeText(data) { - return request({ - url: '/wechatMp/wx-subscribe-text/update', - method: 'put', - data: data - }) -} - -// 删除关注欢迎语 -export function deleteWxSubscribeText(id) { - return request({ - url: '/wechatMp/wx-subscribe-text/delete?id=' + id, - method: 'delete' - }) -} - -// 获得关注欢迎语 -export function getWxSubscribeText(id) { - return request({ - url: '/wechatMp/wx-subscribe-text/get?id=' + id, - method: 'get' - }) -} - -// 获得关注欢迎语分页 -export function getWxSubscribeTextPage(query) { - return request({ - url: '/wechatMp/wx-subscribe-text/page', - method: 'get', - params: query - }) -} - -// 导出关注欢迎语 Excel -export function exportWxSubscribeTextExcel(query) { - return request({ - url: '/wechatMp/wx-subscribe-text/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/yudao-ui-admin/src/api/wechatMp/wxTextTemplate.js b/yudao-ui-admin/src/api/wechatMp/wxTextTemplate.js deleted file mode 100644 index 4c558b12a..000000000 --- a/yudao-ui-admin/src/api/wechatMp/wxTextTemplate.js +++ /dev/null @@ -1,54 +0,0 @@ -import request from '@/utils/request' - -// 创建文本模板 -export function createWxTextTemplate(data) { - return request({ - url: '/wechatMp/wx-text-template/create', - method: 'post', - data: data - }) -} - -// 更新文本模板 -export function updateWxTextTemplate(data) { - return request({ - url: '/wechatMp/wx-text-template/update', - method: 'put', - data: data - }) -} - -// 删除文本模板 -export function deleteWxTextTemplate(id) { - return request({ - url: '/wechatMp/wx-text-template/delete?id=' + id, - method: 'delete' - }) -} - -// 获得文本模板 -export function getWxTextTemplate(id) { - return request({ - url: '/wechatMp/wx-text-template/get?id=' + id, - method: 'get' - }) -} - -// 获得文本模板分页 -export function getWxTextTemplatePage(query) { - return request({ - url: '/wechatMp/wx-text-template/page', - method: 'get', - params: query - }) -} - -// 导出文本模板 Excel -export function exportWxTextTemplateExcel(query) { - return request({ - url: '/wechatMp/wx-text-template/export-excel', - method: 'get', - params: query, - responseType: 'blob' - }) -} diff --git a/yudao-ui-admin/src/views/mp/components/wx-material-select/main.vue b/yudao-ui-admin/src/views/mp/components/wx-material-select/main.vue index 7f5fd32a9..f6de1ae2d 100644 --- a/yudao-ui-admin/src/views/mp/components/wx-material-select/main.vue +++ b/yudao-ui-admin/src/views/mp/components/wx-material-select/main.vue @@ -5,8 +5,8 @@ diff --git a/yudao-ui-admin/src/views/wechatMp/wxMenu/index.vue b/yudao-ui-admin/src/views/wechatMp/wxMenu/index.vue deleted file mode 100644 index f888bd61c..000000000 --- a/yudao-ui-admin/src/views/wechatMp/wxMenu/index.vue +++ /dev/null @@ -1,314 +0,0 @@ - - -