Commit df11e6ea authored by 赵啸非's avatar 赵啸非

修改配置文件

parent 65e67146
...@@ -28,14 +28,8 @@ CREATE TABLE `mortals_ent_life_matter` ...@@ -28,14 +28,8 @@ CREATE TABLE `mortals_ent_life_matter`
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID,主键,自增长', `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID,主键,自增长',
`life_cycle_id` bigint(20) DEFAULT NULL COMMENT '企业生命周期id', `life_cycle_id` bigint(20) DEFAULT NULL COMMENT '企业生命周期id',
`life_cycle_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生命周期名称', `life_cycle_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生命周期名称',
`matter_id` bigint(20) DEFAULT NULL COMMENT '事项id', `matter_group_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '事项组名称',
`matter_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '事项名称', `dept_id` bigint(20) NULL DEFAULT NULL COMMENT '办理单位数量',
`matter_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '事项编码',
`area_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '区域编码',
`area_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '区域名称',
`area_level` tinyint(2) NULL DEFAULT 1 COMMENT '区域等级(1.省,2.地市州,3.区县,4.街道,5.社区)',
`dept_id` bigint(20) NULL DEFAULT NULL COMMENT '办理单位ID',
`dept_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '办理单位名称',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注', `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
`create_user_id` bigint(20) DEFAULT NULL COMMENT '创建用户', `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建用户',
`create_user_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称', `create_user_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
...@@ -63,6 +57,7 @@ CREATE TABLE `mortals_ent_life_matter_sub` ...@@ -63,6 +57,7 @@ CREATE TABLE `mortals_ent_life_matter_sub`
`area_level` tinyint(2) NULL DEFAULT 1 COMMENT '区域等级(1.省,2.地市州,3.区县,4.街道,5.社区)', `area_level` tinyint(2) NULL DEFAULT 1 COMMENT '区域等级(1.省,2.地市州,3.区县,4.街道,5.社区)',
`dept_id` bigint(20) NULL DEFAULT NULL COMMENT '办理单位ID', `dept_id` bigint(20) NULL DEFAULT NULL COMMENT '办理单位ID',
`dept_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '办理单位名称', `dept_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '办理单位名称',
`sort` int(4) NULL DEFAULT 0 COMMENT '排序字段',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注', `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
`create_user_id` bigint(20) DEFAULT NULL COMMENT '创建用户', `create_user_id` bigint(20) DEFAULT NULL COMMENT '创建用户',
`create_user_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称', `create_user_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建用户名称',
......
...@@ -105,18 +105,17 @@ public class AuthTokenServiceImpl implements IAuthTokenService { ...@@ -105,18 +105,17 @@ public class AuthTokenServiceImpl implements IAuthTokenService {
Claims claims = parseToken(token); Claims claims = parseToken(token);
String uuid = (String) claims.get(SysConstains.LOGIN_USER_KEY); String uuid = (String) claims.get(SysConstains.LOGIN_USER_KEY);
String userKey = getTokenKey(uuid); String userKey = getTokenKey(uuid);
String userStr = cacheService.get(userKey);
//cacheService.select(portalDb); //cacheService.select(portalDb);
// String userStr = cacheService.get(userKey); // String userStr = cacheService.get(userKey);
/* RedisTemplate<String, String> redisTemplate = cacheService.selectDbRedisTemplate(portalDb); RedisTemplate<String, String> redisTemplate = cacheService.selectDbRedisTemplate(portalDb);
String userStr =redisTemplate.opsForValue().get(userKey);*/ String userStr =redisTemplate.opsForValue().get(userKey);
//刷新token时间 //刷新token时间
UserEntity userEntity = JSONObject.parseObject(userStr, UserEntity.class); UserEntity userEntity = JSONObject.parseObject(userStr, UserEntity.class);
if (!ObjectUtils.isEmpty(userEntity)) { if (!ObjectUtils.isEmpty(userEntity)) {
verifyToken(userEntity); verifyToken(userEntity);
} }
// cacheService.select(db); // cacheService.select(db);
if (!ObjectUtils.isEmpty(userEntity)) { if (!ObjectUtils.isEmpty(userEntity)) {
UserEntity temp = userService.getExtCache(userEntity.getLoginName()); UserEntity temp = userService.getExtCache(userEntity.getLoginName());
if (!ObjectUtils.isEmpty(temp)) { if (!ObjectUtils.isEmpty(temp)) {
......
...@@ -75,7 +75,7 @@ public class AuthUserInterceptor extends BaseInterceptor { ...@@ -75,7 +75,7 @@ public class AuthUserInterceptor extends BaseInterceptor {
if (ObjectUtils.isEmpty(loginUser)) { if (ObjectUtils.isEmpty(loginUser)) {
ServletUtils.renderString(response, JSONObject.toJSONString(Rest.fail(ERROR_TOKEN_EXPIRED, ERROR_TOKEN_EXPIRED_CONTENT))); ServletUtils.renderString(response, JSONObject.toJSONString(Rest.fail(ERROR_TOKEN_EXPIRED, ERROR_TOKEN_EXPIRED_CONTENT)));
return false; return false;
// } else if (loginUser.isAdmin() || loginUser.getUserType() == 1) { // } else if (loginUser.isAdmin() || loginUser.getUserType() == 1) {
} else if (loginUser.isAdmin()) { } else if (loginUser.isAdmin()) {
return super.preHandle(request, response, handler); return super.preHandle(request, response, handler);
} else { } else {
......
package com.mortals.xhx.base.login;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.mortals.framework.common.Rest;
import com.mortals.framework.service.IAuthTokenService;
import com.mortals.framework.service.ICacheService;
import com.mortals.framework.service.IUser;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.base.login.web.LoginForm;
import com.mortals.xhx.base.system.menu.model.MenuEntity;
import com.mortals.xhx.base.system.menu.service.MenuService;
import com.mortals.xhx.base.system.resource.service.ResourceService;
import com.mortals.xhx.base.system.user.model.UserEntity;
import com.mortals.xhx.base.system.user.service.UserService;
import com.mortals.xhx.common.key.RedisKey;
import com.mortals.xhx.common.pdu.user.LoginPdu;
import com.mortals.xhx.common.utils.MenuEncodeUtil;
import com.mortals.xhx.feign.site.ISiteFeign;
import com.mortals.xhx.feign.user.IUserFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Set;
import static com.mortals.xhx.common.key.ErrorCode.ERROR_TOKEN_EXPIRED;
import static com.mortals.xhx.common.key.ErrorCode.ERROR_TOKEN_EXPIRED_CONTENT;
@RestController
@Slf4j
@RequestMapping("login")
public class LoginController extends BaseCRUDJsonBodyMappingController<UserService, UserEntity, Long> implements InitializingBean {
@Autowired
private ResourceService resourceService;
@Autowired
private MenuService menuService;
@Autowired
private ICacheService cacheService;
@Autowired
private IAuthTokenService authTokenService;
@Autowired
private IUserFeign userFeign;
@Autowired
private ISiteFeign siteFeign;
@RequestMapping("login")
public String login(@RequestBody LoginForm loginForm) throws Exception {
String loginName = loginForm.getLoginName();
String password = loginForm.getPassword();
LoginPdu loginPdu = new LoginPdu();
loginPdu.setLoginName(loginName);
loginPdu.setPassword(password);
loginPdu.setSecurityCode("admin");
String resp = userFeign.portalLogin(loginPdu);
return resp;
}
@RequestMapping("logout")
public void logout(HttpServletRequest request, HttpServletResponse response) throws Exception {
recordSysLog(request, "退出登录");
super.removeCurrUser(request);
}
@RequestMapping("index")
public String index() throws Exception {
JSONObject ret = new JSONObject();
IUser user = this.getCurUser();
if (user == null) {
return JSONObject.toJSONString(Rest.fail(ERROR_TOKEN_EXPIRED, ERROR_TOKEN_EXPIRED_CONTENT));
}
Set<String> urls = resourceService.findUrlSetByUserId(user.getId());
log.info("userId:{},urls:{}", user.getId(), JSON.toJSONString(urls));
// List<MenuEntity> outlookBarList = menuService.findTreeMenu(user, urls);
List<MenuEntity> treeMenuList = menuService.findTreeMenu(user);
String currUserName = user.getRealName();
if (currUserName == null || currUserName.trim().length() == 0) {
currUserName = "管理员";
}
JSONObject data = new JSONObject();
String token = authTokenService.getToken(request);
data.put("token", token);
data.put("currUserName", currUserName);
data.put("menuList", treeMenuList);
data.put("id", user.getId());
data.put("userType", user.getUserType());
ret.put(KEY_RESULT_DATA, data);
cacheService.hset(RedisKey.KEY_USER_MENU_CACHE, user.getId().toString(), MenuEncodeUtil.generateMenuUrlCode(urls));
ret.put(KEY_RESULT_CODE, VALUE_RESULT_SUCCESS);
ret.put(KEY_RESULT_MSG, "用户登录系统成功!");
ret.put("resources", urls);
return ret.toJSONString();
}
@Override
public void afterPropertiesSet() throws Exception {
log.info("初始化加载登录。。。");
}
}
package com.mortals.xhx.base.login.interceptor;
import com.mortals.framework.annotation.UnAuth;
import com.mortals.xhx.base.framework.config.InterceptorConfig;
import com.mortals.framework.ap.CookieService;
import com.mortals.framework.ap.SysConstains;
import com.mortals.framework.model.CookieInfo;
import com.mortals.framework.service.ICacheService;
import com.mortals.framework.util.AESUtil;
import com.mortals.framework.util.HttpUtil;
import com.mortals.framework.util.StringUtils;
import com.mortals.framework.web.interceptor.BaseInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import org.springframework.web.method.HandlerMethod;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.lang.reflect.Method;
@Order(1)
//@Component
public class AuthJsonInterceptor extends BaseInterceptor {
@Autowired
private InterceptorConfig config;
@Autowired
private ICacheService cacheService;
@Override
public int getOrder() {
return Integer.MAX_VALUE - 9;
}
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
throws Exception {
try {
HandlerMethod handlerMethod = (HandlerMethod) handler;
Method method = handlerMethod.getMethod();
UnAuth annotation = method.getAnnotation(UnAuth.class);
if (annotation != null) {
//取消校验
return true;
}
String uri = request.getServletPath();
if (config.needCheckAuth(uri)) {
boolean auth = this.checkAuth(request, uri, config.getSecurityKey());
if (!auth) {
CookieInfo cookie = CookieService.getLoginCookie(request, config.getSecurityKey());
if (cookie == null || cookie.getUser() == null) {
writeJsonResponse(response, HttpServletResponse.SC_FORBIDDEN, "用户未登录或登录失效,请重新登录");
return false;
} else if (cookie.getUser().isAdmin()) {
return super.preHandle(request, response, handler);
} else {
writeJsonResponse(response, HttpServletResponse.SC_UNAUTHORIZED, "用户无该操作权限");
return false;
}
}
}
} catch (Exception e) {
logger.error("权限校验拦截请求处理异常-->" + e.getMessage());
writeJsonResponse(response, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "用户权限校验异常");
return false;
}
return super.preHandle(request, response, handler);
}
private boolean checkAuth(HttpServletRequest request, String requestUrl, String securityKey) throws Exception {
int code = requestUrl.hashCode() & (Integer.MAX_VALUE - 1);
String cacheKey = HttpUtil.getCookieValue(request, SysConstains.COOKIE_MENU);
if (StringUtils.isEmpty(cacheKey)) {
return false;
}
String menuUrl = cacheService.get(cacheKey);
if (StringUtils.isEmpty(menuUrl)) {
return false;
}
menuUrl = AESUtil.decrypt(menuUrl, securityKey);
String codes = "," + menuUrl + ",";
String codeKey = "," + code + ",";
if (codes.indexOf(codeKey) != -1) {
return true;
}
return false;
}
}
package com.mortals.xhx.base.login.interceptor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.mortals.xhx.base.framework.config.InterceptorConfig;
import org.springframework.beans.factory.annotation.Autowired;
import com.mortals.framework.ap.CookieService;
import com.mortals.framework.model.CookieInfo;
import com.mortals.framework.service.ITokenService;
import com.mortals.framework.web.interceptor.BaseInterceptor;
//@Component
public class LoginJsonInterceptor extends BaseInterceptor {
@Autowired(required = false)
private ITokenService tokenService;
@Autowired
private InterceptorConfig config;
@Override
public int getOrder() {
return Integer.MAX_VALUE - 10;
}
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
throws Exception {
try {
String uri = request.getServletPath();
if (config.needCheckAuth(uri)) {
CookieInfo cookie = CookieService.getLoginCookie(request, config.getSecurityKey());
boolean expire = true;
try {
if (cookie == null || cookie.getUser() == null
|| (cookie != null && tokenService != null && tokenService.isExpireToken(cookie))) {
expire = true;
} else {
expire = false;
}
} catch (Exception e) {
logger.warn("校验cookie是否过期异常-->原因:" + e.getMessage());
}
// 判断用户是否登录
if (expire) {
CookieService.deleteLoginCookie(request, response);
writeJsonResponse(response, HttpServletResponse.SC_FORBIDDEN, "用户未登录或登录失效,请重新登录111333");
return false;
}
}
} catch (Exception e) {
logger.error("登录校验拦截请求处理异常-->" + e.getMessage());
writeJsonResponse(response, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "用户登录校验异常");
return false;
}
return super.preHandle(request, response, handler);
}
}
...@@ -12,69 +12,45 @@ import com.mortals.xhx.module.ent.model.vo.EntLifeMatterVo; ...@@ -12,69 +12,45 @@ import com.mortals.xhx.module.ent.model.vo.EntLifeMatterVo;
import com.mortals.xhx.module.ent.model.EntLifeMatterSubEntity; import com.mortals.xhx.module.ent.model.EntLifeMatterSubEntity;
import lombok.Data; import lombok.Data;
/** /**
* 企业周期事项主实体对象 * 企业周期事项主实体对象
* *
* @author zxfei * @author zxfei
* @date 2025-03-15 * @date 2025-03-17
*/ */
@Data @Data
public class EntLifeMatterEntity extends EntLifeMatterVo { public class EntLifeMatterEntity extends EntLifeMatterVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 企业生命周期id * 企业生命周期id
*/ */
private Long lifeCycleId; private Long lifeCycleId;
/** /**
* 生命周期名称 * 生命周期名称
*/ */
private String lifeCycleName; private String lifeCycleName;
/** /**
* 事项id * 办理单位ID
*/ */
private Long matterId;
/**
* 事项名称
*/
private String matterName;
/**
* 事项编码
*/
private String matterCode;
/**
* 区域编码
*/
private String areaCode;
/**
* 区域名称
*/
private String areaName;
/**
* 区域等级(1.省,2.地市州,3.区县,4.街道,5.社区)
*/
private Integer areaLevel;
/**
* 办理单位ID
*/
private Long deptId; private Long deptId;
/** /**
* 办理单位名称 * 备注
*/ */
private String deptName;
/**
* 备注
*/
private String remark; private String remark;
/** /**
* 创建用户名称 * 创建用户名称
*/ */
private String createUserName; private String createUserName;
/** /**
* 企业周期事项子信息 * 事项组名称
*/ */
private String matterGroupName;
/**
* 企业周期事项子信息
*/
private List<EntLifeMatterSubEntity> entLifeMatterSubList=new ArrayList<>();; private List<EntLifeMatterSubEntity> entLifeMatterSubList=new ArrayList<>();;
public List<EntLifeMatterSubEntity> getEntLifeMatterSubList(){ public List<EntLifeMatterSubEntity> getEntLifeMatterSubList(){
return entLifeMatterSubList; return entLifeMatterSubList;
} }
public void setEntLifeMatterSubList(List<EntLifeMatterSubEntity> entLifeMatterSubList){ public void setEntLifeMatterSubList(List<EntLifeMatterSubEntity> entLifeMatterSubList){
...@@ -82,7 +58,7 @@ public class EntLifeMatterEntity extends EntLifeMatterVo { ...@@ -82,7 +58,7 @@ public class EntLifeMatterEntity extends EntLifeMatterVo {
} }
@Override @Override
public int hashCode() { public int hashCode() {
return this.getId().hashCode(); return this.getId().hashCode();
} }
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
...@@ -90,24 +66,18 @@ public class EntLifeMatterEntity extends EntLifeMatterVo { ...@@ -90,24 +66,18 @@ public class EntLifeMatterEntity extends EntLifeMatterVo {
if (obj instanceof EntLifeMatterEntity) { if (obj instanceof EntLifeMatterEntity) {
EntLifeMatterEntity tmp = (EntLifeMatterEntity) obj; EntLifeMatterEntity tmp = (EntLifeMatterEntity) obj;
if (this.getId() == tmp.getId()) { if (this.getId() == tmp.getId()) {
return true; return true;
} }
} }
return false; return false;
} }
public void initAttrValue(){ public void initAttrValue(){
this.lifeCycleId = null; this.lifeCycleId = null;
this.lifeCycleName = ""; this.lifeCycleName = "";
this.matterId = null; this.deptId = null;
this.matterName = ""; this.remark = "";
this.matterCode = ""; this.createUserName = "";
this.areaCode = ""; this.matterGroupName = "";
this.areaName = "";
this.areaLevel = 1;
this.deptId = null;
this.deptName = "";
this.remark = "";
this.createUserName = "";
} }
} }
\ No newline at end of file
...@@ -10,62 +10,66 @@ import com.mortals.framework.model.BaseEntityLong; ...@@ -10,62 +10,66 @@ import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.ent.model.vo.EntLifeMatterSubVo; import com.mortals.xhx.module.ent.model.vo.EntLifeMatterSubVo;
import lombok.Data; import lombok.Data;
/** /**
* 企业周期事项子实体对象 * 企业周期事项子实体对象
* *
* @author zxfei * @author zxfei
* @date 2025-03-15 * @date 2025-03-17
*/ */
@Data @Data
public class EntLifeMatterSubEntity extends EntLifeMatterSubVo { public class EntLifeMatterSubEntity extends EntLifeMatterSubVo {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 主事项id * 主事项id
*/ */
private Long masterRecordId; private Long masterRecordId;
/** /**
* 事项id * 事项id
*/ */
private Long matterId; private Long matterId;
/** /**
* 事项名称 * 事项名称
*/ */
private String matterName; private String matterName;
/** /**
* 事项编码 * 事项编码
*/ */
private String matterCode; private String matterCode;
/** /**
* 区域编码 * 区域编码
*/ */
private String areaCode; private String areaCode;
/** /**
* 区域名称 * 区域名称
*/ */
private String areaName; private String areaName;
/** /**
* 区域等级(1.省,2.地市州,3.区县,4.街道,5.社区) * 区域等级(1.省,2.地市州,3.区县,4.街道,5.社区)
*/ */
private Integer areaLevel; private Integer areaLevel;
/** /**
* 办理单位ID * 办理单位ID
*/ */
private Long deptId; private Long deptId;
/** /**
* 办理单位名称 * 办理单位名称
*/ */
private String deptName; private String deptName;
/** /**
* 备注 * 备注
*/ */
private String remark; private String remark;
/** /**
* 创建用户名称 * 创建用户名称
*/ */
private String createUserName; private String createUserName;
/**
* 排序字段
*/
private Integer sort;
@Override @Override
public int hashCode() { public int hashCode() {
return this.getId().hashCode(); return this.getId().hashCode();
} }
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
...@@ -73,23 +77,24 @@ public class EntLifeMatterSubEntity extends EntLifeMatterSubVo { ...@@ -73,23 +77,24 @@ public class EntLifeMatterSubEntity extends EntLifeMatterSubVo {
if (obj instanceof EntLifeMatterSubEntity) { if (obj instanceof EntLifeMatterSubEntity) {
EntLifeMatterSubEntity tmp = (EntLifeMatterSubEntity) obj; EntLifeMatterSubEntity tmp = (EntLifeMatterSubEntity) obj;
if (this.getId() == tmp.getId()) { if (this.getId() == tmp.getId()) {
return true; return true;
} }
} }
return false; return false;
} }
public void initAttrValue(){ public void initAttrValue(){
this.masterRecordId = null; this.masterRecordId = null;
this.matterId = null; this.matterId = null;
this.matterName = ""; this.matterName = "";
this.matterCode = ""; this.matterCode = "";
this.areaCode = ""; this.areaCode = "";
this.areaName = ""; this.areaName = "";
this.areaLevel = 1; this.areaLevel = 1;
this.deptId = null; this.deptId = null;
this.deptName = ""; this.deptName = "";
this.remark = ""; this.remark = "";
this.createUserName = ""; this.createUserName = "";
this.sort = 0;
} }
} }
\ No newline at end of file
...@@ -15,6 +15,7 @@ client.global.set("authToken", JSON.parse(response.body).data.token); ...@@ -15,6 +15,7 @@ client.global.set("authToken", JSON.parse(response.body).data.token);
###企业生命周期列表 ###企业生命周期列表
POST {{baseUrl}}/ent/life/cycle/list POST {{baseUrl}}/ent/life/cycle/list
Authorization: {{authToken}}
Content-Type: application/json Content-Type: application/json
{ {
...@@ -33,7 +34,7 @@ Content-Type: application/json ...@@ -33,7 +34,7 @@ Content-Type: application/json
"lifeCycleName":"tiaNvx", "lifeCycleName":"tiaNvx",
"sort":0, "sort":0,
"remark":"tpsUjo", "remark":"tpsUjo",
"createUserName":"PrDtwb", "createUserName":"PrDtwb"
} }
> {% > {%
......
...@@ -46,26 +46,6 @@ POST {{baseUrl}}/resource/refreshUrl ...@@ -46,26 +46,6 @@ POST {{baseUrl}}/resource/refreshUrl
Accept: application/json Accept: application/json
###测试json提交
POST {{baseUrl}}/test/getHcpSin/json
Content-Type: application/json
{"affairCode":"abcd1234ddddd"}
###针对某一接入
POST {{baseUrl}}/role/auth/editMenu
Authorization: {{authToken}}
Content-Type: application/json
{
"roleId": 2
}
###子区域更新 ###子区域更新
POST {{baseUrl}}/base/area/genSubAreaByAreaName POST {{baseUrl}}/base/area/genSubAreaByAreaName
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment