封装文言提示

This commit is contained in:
Wang.Huan
2025-02-20 18:30:39 +08:00
parent e42aff436a
commit 1e45775c1c
6 changed files with 111 additions and 0 deletions

View File

@@ -5,6 +5,8 @@ package com.openhis.web.InventoryManage.controller;
import javax.servlet.http.HttpServletRequest;
import com.core.common.utils.MessageUtils;
import com.openhis.common.constant.PromptMsgConstant;
import com.openhis.web.InventoryManage.dto.SupplySaveRequestDto;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@@ -38,6 +40,12 @@ public class PurchaseInventoryController {
private final IChargeItemService chargeItemService;
@GetMapping(value = "/test")
public R<?> test(){
//return R.ok(null, MessageUtils.createMessage(PromptMsgConstant.Common.M00002,new Object[] {"12345"})) ;
return R.fail(MessageUtils.createMessage(PromptMsgConstant.Common.M00002,new Object[] {"12345"})) ;
}
/**
* 入库单据分页列表
*

View File

@@ -87,6 +87,10 @@ spring:
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
# 文言
messages:
basename: i18n/general_message/messages
encoding: utf-8
# token配置
token:

View File

@@ -31,3 +31,7 @@ no.update.permission=您没有修改数据的权限,请联系管理员添加
no.delete.permission=您没有删除数据的权限,请联系管理员添加权限 [{0}]
no.export.permission=您没有导出数据的权限,请联系管理员添加权限 [{0}]
no.view.permission=您没有查看数据的权限,请联系管理员添加权限 [{0}]
apl.common.M00002={0}保存成功