新增:国际化多语言支持i18n

This commit is contained in:
2024-12-01 14:58:35 +08:00
parent 83c2979df4
commit 316bdf4dea
3 changed files with 10 additions and 0 deletions

View File

@@ -49,6 +49,9 @@ public class CmsWebsiteField implements Serializable {
@ApiModelProperty(value = "名称")
private String value;
@ApiModelProperty(value = "国际化语言")
private String lang;
@ApiModelProperty(value = "排序(数字越小越靠前)")
private Integer sortNumber;

View File

@@ -13,6 +13,9 @@
<if test="param.type != null">
AND a.type = #{param.type}
</if>
<if test="param.lang != null">
AND a.lang = #{param.lang}
</if>
<if test="param.name != null">
AND a.name LIKE CONCAT('%', #{param.name}, '%')
</if>

View File

@@ -48,6 +48,10 @@ public class CmsWebsiteFieldParam extends BaseParam {
@ApiModelProperty(value = "名称")
private String value;
@ApiModelProperty(value = "国际化语言")
@QueryField(type = QueryType.EQ)
private String lang;
@ApiModelProperty(value = "排序(数字越小越靠前)")
@QueryField(type = QueryType.EQ)
private Integer sortNumber;