init
This commit is contained in:
@@ -6,6 +6,7 @@ import com.ruoyi.common.core.domain.R;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.xq.domain.AreaCode;
|
||||
import com.ruoyi.xq.dto.app.areacode.AreaCodeQuery;
|
||||
import com.ruoyi.xq.dto.app.areacode.AreaCodeTree;
|
||||
import com.ruoyi.xq.dto.app.setting.AgreementDTO;
|
||||
import com.ruoyi.xq.service.AgreementSettingService;
|
||||
import com.ruoyi.xq.service.AreaCodeService;
|
||||
@@ -61,4 +62,12 @@ public class SettingAppController {
|
||||
return R.ok(list);
|
||||
}
|
||||
|
||||
@GetMapping("/areaCode/tree")
|
||||
@Operation(summary = "获取所有省市区编码")
|
||||
@Log(title = "获取所有省市区编码", businessType = BusinessType.OTHER, isSaveDb = false)
|
||||
public R<List<AreaCodeTree>> areaCodeTree(){
|
||||
List<AreaCodeTree> node = areaCodeService.tree();
|
||||
return R.ok(node);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user