feat:【antd】【mp】review 枚举类相关的代码

This commit is contained in:
YunaiV
2025-11-19 21:05:32 +08:00
parent 234ca5cfa4
commit 25cd2b629c
8 changed files with 9 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ import type { PageParam, PageResult } from '@vben/request';
import { requestClient } from '#/api/request';
/** 素材类型枚举 */
// TODO @xingyu芋艿可能要整理下枚举
// TODO @hwmp 相关的枚举,可以考虑放这里来。
export enum MaterialType {
IMAGE = 1, // 图片
THUMB = 4, // 缩略图

View File

@@ -1,7 +1,7 @@
import { requestClient } from '#/api/request';
/** 菜单类型枚举 */
// TODO @xingyu芋艿可能要整理下枚举
// TODO @hwmp 相关的枚举,可以考虑放这里来。
export enum MenuType {
CLICK = 'click', // 点击推事件
LOCATION_SELECT = 'location_select', // 发送位置

View File

@@ -3,7 +3,7 @@ import type { PageParam, PageResult } from '@vben/request';
import { requestClient } from '#/api/request';
/** 消息类型枚举 */
// TODO @xingyu芋艿可能要整理下枚举
// TODO @hwmp 相关的枚举,可以考虑放这里来。
export enum MessageType {
IMAGE = 'image', // 图片消息
MPNEWS = 'mpnews', // 公众号图文消息

View File

@@ -1,3 +1,4 @@
// TODO @hw看看要不要迁移到 packages/constants/src/biz-mp-enum.ts
export enum ReplyType {
Image = 'image',
Music = 'music',

View File

@@ -9,3 +9,5 @@ export * from './wx-news';
export * from './wx-reply';
export * from './wx-video-play';
export * from './wx-voice-play';
// TODO @hw要不使用 export { default as WxAccountSelect } from './account-select.vue'; 形式;

View File

@@ -1,4 +1,5 @@
import { message } from 'ant-design-vue';
// TODO @xingyu这种要想办法全局共享起来么
import { $t } from '#/locales';

View File

@@ -0,0 +1 @@
// TODO @hwmp 相关的枚举,可以考虑放这里来。

View File

@@ -3,6 +3,7 @@ export * from './biz-bpm-enum';
export * from './biz-erp-enum';
export * from './biz-infra-enum';
export * from './biz-mall-enum';
export * from './biz-mp-enum';
export * from './biz-pay-enum';
export * from './biz-system-enum';
export * from './core';