Skip to content

Commit 060e8a7

Browse files
AgAnglefit2-zhao
authored andcommitted
feat: location field scope
--story=1020776@tapd-34675357 --user=陈建星 【系统】期望地区选择框支持配置第一层只显示国内省份,方便快速选择 https://www.tapd.cn/34675357/s/1884028
1 parent e752be3 commit 060e8a7

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package cn.cordys.crm.system.constants;
2+
3+
/**
4+
* @Author: jianxing
5+
* @CreateTime: 2026-03-31 14:00
6+
*/
7+
public enum LocationScope {
8+
/**
9+
* 全部
10+
*/
11+
ALL,
12+
/**
13+
* 中国(包含港澳台)
14+
*/
15+
CN
16+
}

backend/crm/src/main/java/cn/cordys/crm/system/dto/field/LocationField.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package cn.cordys.crm.system.dto.field;
22

3+
import cn.cordys.common.constants.EnumValue;
4+
import cn.cordys.crm.system.constants.LocationScope;
35
import cn.cordys.crm.system.dto.field.base.BaseField;
46
import com.fasterxml.jackson.annotation.JsonTypeName;
57
import io.swagger.v3.oas.annotations.media.Schema;
@@ -11,6 +13,10 @@
1113
@EqualsAndHashCode(callSuper = true)
1214
public class LocationField extends BaseField {
1315

16+
@Schema(description = "地址范围")
17+
@EnumValue(enumClass = LocationScope.class)
18+
private String scope;
19+
1420
@Schema(description = "地址类型|格式")
1521
private String locationType;
1622
}

0 commit comments

Comments
 (0)