mirror of
https://github.moeyy.xyz/https://github.com/GeWuYou/forgeboot
synced 2025-10-28 04:51:08 +08:00
refactor(i18n):Remove internationalization messages and adjust validation annotations
- Removed internationalized message references in the DeleteByIdsReq and PageQueryReq classes - Removed the corresponding entry in the associated messages.properties file - Validation annotations are retained, but specific error messages are removed
This commit is contained in:
parent
439e00552e
commit
98573e5860
@ -1,7 +1,6 @@
|
|||||||
package com.gewuyou.forgeboot.webmvc.dto.request
|
package com.gewuyou.forgeboot.webmvc.dto.request
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||||
import com.gewuyou.forgeboot.webmvc.dto.i18n.I18nKeys
|
|
||||||
import jakarta.validation.constraints.NotEmpty
|
import jakarta.validation.constraints.NotEmpty
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -23,6 +22,6 @@ class DeleteByIdsReq<T>(
|
|||||||
*
|
*
|
||||||
* @param ids 实体的唯一标识符列表,用于指定哪些实体应当被删除
|
* @param ids 实体的唯一标识符列表,用于指定哪些实体应当被删除
|
||||||
*/
|
*/
|
||||||
@field:NotEmpty(message = I18nKeys.Forgeboot.Webmvc.Dto.DELETE_IDS_NOT_EMPTY)
|
@field:NotEmpty(message = "The list of Ids requested to be removed cannot be empty!")
|
||||||
var ids: List<T>,
|
var ids: List<T>,
|
||||||
)
|
)
|
||||||
@ -3,7 +3,6 @@ package com.gewuyou.forgeboot.webmvc.dto.request
|
|||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||||
import com.gewuyou.forgeboot.webmvc.dto.SortCondition
|
import com.gewuyou.forgeboot.webmvc.dto.SortCondition
|
||||||
import com.gewuyou.forgeboot.webmvc.dto.enums.SortDirection
|
import com.gewuyou.forgeboot.webmvc.dto.enums.SortDirection
|
||||||
import com.gewuyou.forgeboot.webmvc.dto.i18n.I18nKeys
|
|
||||||
import jakarta.validation.constraints.Min
|
import jakarta.validation.constraints.Min
|
||||||
import java.time.LocalDateTime
|
import java.time.LocalDateTime
|
||||||
|
|
||||||
@ -22,13 +21,13 @@ open class PageQueryReq<T> {
|
|||||||
/**
|
/**
|
||||||
* 当前页码(默认1)
|
* 当前页码(默认1)
|
||||||
*/
|
*/
|
||||||
@field:Min(1, message = I18nKeys.Forgeboot.Webmvc.Dto.PAGE_QUERY_CURRENT_PAGE_MIN )
|
@field:Min(1)
|
||||||
var currentPage: Int = 1
|
var currentPage: Int = 1
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 每页条数(默认10)
|
* 每页条数(默认10)
|
||||||
*/
|
*/
|
||||||
@field:Min(1, message = I18nKeys.Forgeboot.Webmvc.Dto.PAGE_QUERY_PAGE_SIZE_MIN)
|
@field:Min(1)
|
||||||
var pageSize: Int = 10
|
var pageSize: Int = 10
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
forgeboot.webmvc.dto.page_query.page_size.min=每页条数不得小于1页\!
|
|
||||||
forgeboot.webmvc.dto.page_query.current_page.min=当前页码不得小于1页\!
|
|
||||||
forgeboot.webmvc.dto.result.responseInfo.fail=失败
|
forgeboot.webmvc.dto.result.responseInfo.fail=失败
|
||||||
forgeboot.webmvc.dto.result.responseInfo.ok=成功
|
forgeboot.webmvc.dto.result.responseInfo.ok=成功
|
||||||
forgeboot.webmvc.dto.delete.ids.not_empty=请求删除的id列表不能为空\!
|
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
forgeboot.webmvc.dto.page_query.page_size.min=The number of entries per page shall not be less than 1 page\!
|
|
||||||
forgeboot.webmvc.dto.page_query.current_page.min=The current page number must not be less than 1 page\!
|
|
||||||
forgeboot.webmvc.dto.result.responseInfo.fail=failed
|
forgeboot.webmvc.dto.result.responseInfo.fail=failed
|
||||||
forgeboot.webmvc.dto.result.responseInfo.ok=success
|
forgeboot.webmvc.dto.result.responseInfo.ok=success
|
||||||
forgeboot.webmvc.dto.delete.ids.not_empty=The list of Ids requested to be removed cannot be empty\!
|
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
forgeboot.webmvc.dto.page_query.page_size.min=每页条数不得小于1页\!
|
|
||||||
forgeboot.webmvc.dto.page_query.current_page.min=当前页码不得小于1页\!
|
|
||||||
forgeboot.webmvc.dto.result.responseInfo.fail=失败
|
forgeboot.webmvc.dto.result.responseInfo.fail=失败
|
||||||
forgeboot.webmvc.dto.result.responseInfo.ok=成功
|
forgeboot.webmvc.dto.result.responseInfo.ok=成功
|
||||||
forgeboot.webmvc.dto.delete.ids.not_empty=请求删除的id列表不能为空\!
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user