Commit 7c106337 by guojuxing

联合商户http 接口

parent 03d2ba28
......@@ -176,6 +176,11 @@
</dependency>
<dependency>
<groupId>com.gic</groupId>
<artifactId>gic-marketing-process-api</artifactId>
<version>${gic-marketing-process-api}</version>
</dependency>
<dependency>
<groupId>com.gic</groupId>
<artifactId>gic-member-config-api</artifactId>
<version>${gic-member-config-api}</version>
</dependency>
......
package com.gic.enterprise.web.controller.union;
import com.gic.api.base.commons.Page;
import com.gic.auth.dto.*;
import com.gic.auth.service.*;
import com.gic.enterprise.utils.ResultControllerUtils;
import com.gic.enterprise.web.vo.union.*;
import com.gic.open.api.dto.ApplicationDTO;
import com.gic.open.api.service.ApplicationApiService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
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 com.gic.api.base.commons.ServiceResponse;
import com.gic.commons.util.EntityUtil;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.dto.EnterpriseDTO;
import com.gic.enterprise.error.ErrorCode;
import com.gic.enterprise.response.EnterpriseRestResponse;
import com.gic.enterprise.service.EnterpriseApiService;
import com.gic.enterprise.utils.CreateRandomUtils;
import com.gic.enterprise.utils.UserDetail;
import com.gic.enterprise.utils.UserDetailUtils;
import com.gic.enterprise.web.utils.AuthCodeExpireTimeUtils;
import com.gic.marketing.process.api.service.sms.SmsSendApiService;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@RestController
@RequestMapping("union-enterprise")
public class UnionEnterpriseAuthController {
private static Logger logger = LogManager.getLogger(UnionEnterpriseAuthController.class);
@Autowired
private EnterpriseApiService enterpriseApiService;
@Autowired
private SmsSendApiService smsSendApiService;
@Autowired
private AuthCodeApiService authCodeApiService;
@Autowired
private UserApiService userApiService;
@Autowired
private ResourceGroupApiService resourceGroupApiService;
@Autowired
private AuditedGroupApiService auditedGroupApiService;
@Autowired
private AccountGroupApiService accountGroupApiService;
@Autowired
private ApplicationApiService applicationApiService;
private static final String UNION_ENTERPRISE_AUTH_SMS_CODE = "GICSHHT001";
/**
* 商户名称查询商户是否存在
* @param enterpriseName
* @return
*/
@RequestMapping("check-enterprise-by-name")
public RestResponse checkEnterpriseName(String enterpriseName) {
EnterpriseDTO enterpriseDTO = checkEnterpriseByEnterpriseName(enterpriseName);
if (enterpriseDTO == null) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "联合商户不存在或者是自有商户");
}
return RestResponse.success(EntityUtil.changeEntityNew(EnterpriseInfoVO.class, enterpriseDTO));
}
@RequestMapping("send-auth-code-to-union-enterprise")
public RestResponse sendAuthCode(String enterpriseName) {
EnterpriseDTO unionEnterprise = checkEnterpriseByEnterpriseName(enterpriseName);
if (unionEnterprise == null) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "联合商户不存在或者是自有商户");
}
ServiceResponse<UserDTO> unionUserRes = userApiService.getUserByEnterpriseId(unionEnterprise.getEnterpriseId());
UserDTO unionUser = unionUserRes.getResult();
UserDetail userDetail = UserDetailUtils.getUserDetail();
//验证码生成
AuthCodeDTO authCodeDTO = new AuthCodeDTO();
authCodeDTO.setEnterpriseId(UserDetailUtils.getUserDetail().getEnterpriseId());
//生成4位数字验证码
String authCode = CreateRandomUtils.getStringRandom(4);
authCodeDTO.setAuthCode(authCode);
authCodeDTO.setExpirationTime(AuthCodeExpireTimeUtils.setAuthCodeExpireTime(5));
ServiceResponse<Integer> result = authCodeApiService.saveAuth(authCodeDTO);
if (result.isSuccess()) {
Integer authCodeId = result.getResult();
//发送手机验证码
String[] smsArr = new String[] { unionEnterprise.getEnterpriseName(),
userDetail.getEnterpriseInfo().getEnterpriseName(),
authCode,
userDetail.getEnterpriseInfo().getEnterpriseName()};
ServiceResponse<Void> smsSendResult = smsSendApiService.sendPlatformSms(UNION_ENTERPRISE_AUTH_SMS_CODE,
unionEnterprise.getEnterpriseId(),
unionUser.getPhoneAreaCode(),
unionUser.getPhoneNumber(),
smsArr);
if (!smsSendResult.isSuccess()) {
return EnterpriseRestResponse.failure(smsSendResult);
} else {
return RestResponse.success(authCodeId);
}
}
return EnterpriseRestResponse.failure(result);
}
@RequestMapping("create-union-enterprise")
public RestResponse resetPasswordByAuthCode(String authCode, Integer authCodeId, String enterpriseName) {
ServiceResponse authCodeResult = authCodeApiService.validateAuthCode(authCodeId, authCode);
if (!authCodeResult.isSuccess()) {
return RestResponse.failure(authCodeResult.getCode(), authCodeResult.getMessage());
}
EnterpriseDTO unionEnterprise = checkEnterpriseByEnterpriseName(enterpriseName);
if (unionEnterprise == null) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "联合商户不存在或者是自有商户");
}
//todo starrynight 创建联合商户
return RestResponse.success(1);
}
/**
* 资源组
* @return
*/
@RequestMapping("list-resource-group")
public RestResponse listResourceGroup() {
ServiceResponse<List<ResourceGroupDTO>> response = resourceGroupApiService.listResourceGroup(null,
UserDetailUtils.getUserDetail().getEnterpriseId());
return ResultControllerUtils.commonResult(response, UnionResourceGroupVO.class);
}
/**
* 受审组
* @return
*/
@RequestMapping("list-audited-group")
public RestResponse listAuditedGroup() {
ServiceResponse<List<AuditedGroupDTO>> response = auditedGroupApiService.listAllAuditedGroup(UserDetailUtils.getUserDetail().getEnterpriseId());
return ResultControllerUtils.commonResult(response, UnionAuditedGroupVO.class);
}
/**
* 账号分组
* @return
*/
@RequestMapping("list-account-group")
public RestResponse listAccountGroup() {
ServiceResponse<List<AccountGroupDTO>> response = accountGroupApiService.listNoMemberByEnterpriseId(UserDetailUtils.getUserDetail().getEnterpriseId());
return ResultControllerUtils.commonResult(response, UnionAccountGroupVO.class);
}
@RequestMapping("auth-resource")
public RestResponse authResource(@RequestBody UnionEnterpriseAuthResQO unionEnterpriseAuthResQO) {
//todo starrynight 资源授权
return RestResponse.success();
}
/**
* 解除资源
* @param enterpriseId 联合商户
* @param relieveRemark 解除理由
* @return
*/
@RequestMapping("relieve-resource")
public RestResponse relieveResource(Integer enterpriseId, String relieveRemark) {
//todo starrynight 解除资源
return RestResponse.success();
}
/**
* 联合商户列表
* @param enterpriseName
* @param authStatus 资源授权状态
* @return
*/
@RequestMapping("list-union-enterprise")
public RestResponse listUnionEnterprise(String enterpriseName, Integer authStatus) {
List<UnionEnterpriseListVO> list = new ArrayList<>();
//todo starrynight
return RestResponse.success(list);
}
@RequestMapping("list-app")
public RestResponse listApp() {
ServiceResponse<List<ApplicationDTO>> appListResponse = applicationApiService.listApplicationAndServeProp();
return ResultControllerUtils.commonResult(appListResponse, UnionAppVO.class);
}
@RequestMapping("auth-app-resource")
public RestResponse authAppResource(@RequestBody UnionEnterpriseAuthAppQO unionEnterpriseAuthAppQO) {
//todo starrynight app资源授权
return RestResponse.success();
}
@RequestMapping("user-area")
public RestResponse userArea(Integer enterpriseId) {
//todo starrynight 资源组的用户域数据
Map<String, String[]> result = new HashMap<>();
return RestResponse.success(result);
}
@RequestMapping("list-app-resource")
public RestResponse listAppResource(Integer enterpriseId) {
//todo starrynight
Page<UnionAppResourceListVO> page = new Page<>();
return RestResponse.success(page);
}
/**
* 检查是否存在联合商户
* @param enterpriseName
* @return null失败
*/
private EnterpriseDTO checkEnterpriseByEnterpriseName(String enterpriseName) {
ServiceResponse<EnterpriseDTO> response = enterpriseApiService.getEnterpriseByName(enterpriseName);
if (response.isSuccess()) {
EnterpriseDTO enterpriseDTO = response.getResult();
if (enterpriseDTO != null) {
if (enterpriseDTO.getEnterpriseId().equals(UserDetailUtils.getUserDetail().getEnterpriseId())) {
return null;
}
return enterpriseDTO;
}
}
return null;
}
}
package com.gic.enterprise.web.utils;
import java.util.Calendar;
import java.util.Date;
/**
* 验证码过期时间工具
* @ClassName:
* @Description: 

* @author guojuxing

* @date 2021/2/2 10:39 AM

*/
public class AuthCodeExpireTimeUtils {
/**
* 设置过期时间
* @param minute 分钟
* @return
*/
public static Date setAuthCodeExpireTime(Integer minute) {
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date());
calendar.add(Calendar.MINUTE, minute);
return calendar.getTime();
}
}
package com.gic.enterprise.web.vo.union;
import java.io.Serializable;
/**
* 联合商户信息
* @ClassName:
* @Description: 

* @author guojuxing

* @date 2021/2/2 10:06 AM

*/
public class EnterpriseInfoVO implements Serializable{
private static final long serialVersionUID = 8476544001805274400L;
private Integer enterpriseId;
private String enterpriseName;
private String companyName;
private String logo;
public Integer getEnterpriseId() {
return enterpriseId;
}
public EnterpriseInfoVO setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
return this;
}
public String getEnterpriseName() {
return enterpriseName;
}
public EnterpriseInfoVO setEnterpriseName(String enterpriseName) {
this.enterpriseName = enterpriseName;
return this;
}
public String getCompanyName() {
return companyName;
}
public EnterpriseInfoVO setCompanyName(String companyName) {
this.companyName = companyName;
return this;
}
public String getLogo() {
return logo;
}
public EnterpriseInfoVO setLogo(String logo) {
this.logo = logo;
return this;
}
@Override
public String toString() {
return "EnterpriseInfoVO{" +
"enterpriseId=" + enterpriseId +
", enterpriseName='" + enterpriseName + '\'' +
", companyName='" + companyName + '\'' +
", logo='" + logo + '\'' +
'}';
}
}
package com.gic.enterprise.web.vo.union;
import java.io.Serializable;
/**
* 账号分组
* @ClassName:
* @Description: 

* @author guojuxing

* @date 2021/2/2 2:03 PM

*/
public class UnionAccountGroupVO implements Serializable{
private static final long serialVersionUID = 7838844931460734362L;
/**
* ID
*/
private Integer accountGroupId;
/**
* 账号名称
*/
private String accountGroupName;
public Integer getAccountGroupId() {
return accountGroupId;
}
public UnionAccountGroupVO setAccountGroupId(Integer accountGroupId) {
this.accountGroupId = accountGroupId;
return this;
}
public String getAccountGroupName() {
return accountGroupName;
}
public UnionAccountGroupVO setAccountGroupName(String accountGroupName) {
this.accountGroupName = accountGroupName;
return this;
}
@Override
public String toString() {
return "UnionAccountGroupVO{" +
"accountGroupId=" + accountGroupId +
", accountGroupName='" + accountGroupName + '\'' +
'}';
}
}
package com.gic.enterprise.web.vo.union;
import java.io.Serializable;
/**
* 应用资源
* @ClassName:
* @Description: 

* @author guojuxing

* @date 2021/2/2 3:48 PM

*/
public class UnionAppResourceListVO implements Serializable{
private static final long serialVersionUID = 4944103910280799915L;
/**
* 策略名称
*/
private String strategyName;
private String appDesc;
private String appDetail;
private String resourceAreaDesc;
private String authData;
private Integer unionEnterpriseAuthAppId;
public String getStrategyName() {
return strategyName;
}
public UnionAppResourceListVO setStrategyName(String strategyName) {
this.strategyName = strategyName;
return this;
}
public String getAppDesc() {
return appDesc;
}
public UnionAppResourceListVO setAppDesc(String appDesc) {
this.appDesc = appDesc;
return this;
}
public String getResourceAreaDesc() {
return resourceAreaDesc;
}
public UnionAppResourceListVO setResourceAreaDesc(String resourceAreaDesc) {
this.resourceAreaDesc = resourceAreaDesc;
return this;
}
public String getAuthData() {
return authData;
}
public UnionAppResourceListVO setAuthData(String authData) {
this.authData = authData;
return this;
}
public Integer getUnionEnterpriseAuthAppId() {
return unionEnterpriseAuthAppId;
}
public UnionAppResourceListVO setUnionEnterpriseAuthAppId(Integer unionEnterpriseAuthAppId) {
this.unionEnterpriseAuthAppId = unionEnterpriseAuthAppId;
return this;
}
public String getAppDetail() {
return appDetail;
}
public UnionAppResourceListVO setAppDetail(String appDetail) {
this.appDetail = appDetail;
return this;
}
@Override
public String toString() {
return "UnionAppResourceListVO{" +
"strategyName='" + strategyName + '\'' +
", appDesc='" + appDesc + '\'' +
", appDetail='" + appDetail + '\'' +
", resourceAreaDesc='" + resourceAreaDesc + '\'' +
", authData='" + authData + '\'' +
", unionEnterpriseAuthAppId=" + unionEnterpriseAuthAppId +
'}';
}
}
package com.gic.enterprise.web.vo.union;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
/**
* 应用
* @ClassName:
* @Description: 

* @author guojuxing

* @date 2021/2/2 2:43 PM

*/
public class UnionAppVO implements Serializable{
private static final long serialVersionUID = -4208322294988422140L;
/**
* 主键
*/
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long applicationId;
/**
* 应用名称
*/
private String name;
public Long getApplicationId() {
return applicationId;
}
public UnionAppVO setApplicationId(Long applicationId) {
this.applicationId = applicationId;
return this;
}
public String getName() {
return name;
}
public UnionAppVO setName(String name) {
this.name = name;
return this;
}
@Override
public String toString() {
return "UnionAppVO{" +
"applicationId=" + applicationId +
", name='" + name + '\'' +
'}';
}
}
package com.gic.enterprise.web.vo.union;
import java.io.Serializable;
/**
* 受审组
* @ClassName:
* @Description: 

* @author guojuxing

* @date 2021/2/2 2:03 PM

*/
public class UnionAuditedGroupVO implements Serializable{
private static final long serialVersionUID = 7838844931460734362L;
/**
*
*/
private Integer auditedGroupId;
private String auditedGroupName;
public Integer getAuditedGroupId() {
return auditedGroupId;
}
public UnionAuditedGroupVO setAuditedGroupId(Integer auditedGroupId) {
this.auditedGroupId = auditedGroupId;
return this;
}
public String getAuditedGroupName() {
return auditedGroupName;
}
public UnionAuditedGroupVO setAuditedGroupName(String auditedGroupName) {
this.auditedGroupName = auditedGroupName;
return this;
}
@Override
public String toString() {
return "UnionAuditedGroupVO{" +
"auditedGroupId=" + auditedGroupId +
", auditedGroupName='" + auditedGroupName + '\'' +
'}';
}
}
package com.gic.enterprise.web.vo.union;
import java.io.Serializable;
/**
* 应用资源授权
* @ClassName:
* @Description: 

* @author guojuxing

* @date 2021/2/2 2:56 PM

*/
public class UnionEnterpriseAuthAppQO implements Serializable{
private static final long serialVersionUID = 5539422505646353315L;
/**
* 策略名称
*/
private String strategyName;
/**
* 应用ID,多选,英文逗号隔开
*/
private String appId;
/**
* 0:不授予 1:授予
*/
private Integer appAuthStatus;
/**
* 所选资源组中的用户域中的域资源(mcu,fcu,acu,scu),json数组格式 CuTypeEnum
*/
private String authData;
/**
* 联合商户名称
*/
private String enterpriseName;
/**
* 联合商户主键
*/
private Integer unionEnterpriseAuthId;
public String getStrategyName() {
return strategyName;
}
public UnionEnterpriseAuthAppQO setStrategyName(String strategyName) {
this.strategyName = strategyName;
return this;
}
public String getAppId() {
return appId;
}
public UnionEnterpriseAuthAppQO setAppId(String appId) {
this.appId = appId;
return this;
}
public Integer getAppAuthStatus() {
return appAuthStatus;
}
public UnionEnterpriseAuthAppQO setAppAuthStatus(Integer appAuthStatus) {
this.appAuthStatus = appAuthStatus;
return this;
}
public String getAuthData() {
return authData;
}
public UnionEnterpriseAuthAppQO setAuthData(String authData) {
this.authData = authData;
return this;
}
public String getEnterpriseName() {
return enterpriseName;
}
public UnionEnterpriseAuthAppQO setEnterpriseName(String enterpriseName) {
this.enterpriseName = enterpriseName;
return this;
}
public Integer getUnionEnterpriseAuthId() {
return unionEnterpriseAuthId;
}
public UnionEnterpriseAuthAppQO setUnionEnterpriseAuthId(Integer unionEnterpriseAuthId) {
this.unionEnterpriseAuthId = unionEnterpriseAuthId;
return this;
}
@Override
public String toString() {
return "UnionEnterpriseAuthAppQO{" +
"strategyName='" + strategyName + '\'' +
", appId='" + appId + '\'' +
", appAuthStatus=" + appAuthStatus +
", authData='" + authData + '\'' +
", enterpriseName='" + enterpriseName + '\'' +
", unionEnterpriseAuthId=" + unionEnterpriseAuthId +
'}';
}
}
package com.gic.enterprise.web.vo.union;
import java.io.Serializable;
/**
* 联合商户资源授权。
* @ClassName:
* @Description: 

* @author guojuxing

* @date 2021/2/2 11:32 AM

*/
public class UnionEnterpriseAuthResQO implements Serializable{
private static final long serialVersionUID = 3278113677530099094L;
/**
* 资源组ID
*/
private Integer resourceGroupId;
/**
* 受审组,多选,英文逗号隔开
*/
private String auditeeGroup;
/**
* 账号分组,多选,英文逗号隔开
*/
private String accountGroup;
/**
* 数据加密字段 1:用户手机号、卡号 2:用户收获地址 。多选,英文逗号隔开
*/
private String dataEncryField;
/**
* 用户修改权限 1:用户归属修改权限 2:用户等级修改权限 3:用户积分修改权限 4:用户手机号修改权限 。多选,英文逗号隔开
*/
private String userEditAuth;
/**
* 联合商户名称
*/
private String enterpriseName;
/**
*
*/
private Integer enterpriseId;
public Integer getResourceGroupId() {
return resourceGroupId;
}
public UnionEnterpriseAuthResQO setResourceGroupId(Integer resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
public String getAuditeeGroup() {
return auditeeGroup;
}
public UnionEnterpriseAuthResQO setAuditeeGroup(String auditeeGroup) {
this.auditeeGroup = auditeeGroup;
return this;
}
public String getAccountGroup() {
return accountGroup;
}
public UnionEnterpriseAuthResQO setAccountGroup(String accountGroup) {
this.accountGroup = accountGroup;
return this;
}
public String getDataEncryField() {
return dataEncryField;
}
public UnionEnterpriseAuthResQO setDataEncryField(String dataEncryField) {
this.dataEncryField = dataEncryField;
return this;
}
public String getUserEditAuth() {
return userEditAuth;
}
public UnionEnterpriseAuthResQO setUserEditAuth(String userEditAuth) {
this.userEditAuth = userEditAuth;
return this;
}
public String getEnterpriseName() {
return enterpriseName;
}
public UnionEnterpriseAuthResQO setEnterpriseName(String enterpriseName) {
this.enterpriseName = enterpriseName;
return this;
}
public Integer getEnterpriseId() {
return enterpriseId;
}
public UnionEnterpriseAuthResQO setEnterpriseId(Integer enterpriseId) {
this.enterpriseId = enterpriseId;
return this;
}
@Override
public String toString() {
return "UnionEnterpriseAuthResQO{" +
"resourceGroupId=" + resourceGroupId +
", auditeeGroup='" + auditeeGroup + '\'' +
", accountGroup='" + accountGroup + '\'' +
", dataEncryField='" + dataEncryField + '\'' +
", userEditAuth='" + userEditAuth + '\'' +
", enterpriseName='" + enterpriseName + '\'' +
", enterpriseId=" + enterpriseId +
'}';
}
}
package com.gic.enterprise.web.vo.union;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* 联合商户列表
* @ClassName:
* @Description: 

* @author guojuxing

* @date 2021/2/2 2:16 PM

*/
public class UnionEnterpriseListVO implements Serializable{
private static final long serialVersionUID = -2875250048224774263L;
private String userName;
private String phoneNumber;
/**
* 国际区号,如中国 86
*/
private String phoneAreaCode;
private String enterpriseName;
private String companyName;
private String address;
private String enterpriseId;
/**
* 1:有效 2:解除中 3: 已解除联合
*/
private Integer statusFlag;
/**
* 解除时间
*/
private Date relieveTime;
/**
* 最新解除时间(最后一项资源收回完毕时间)
*/
private Date lastRelieveTime;
/**
* 解除生效时间,保留X个自然日后开始解除资源
*/
private Integer relieveEffectDate;
/**
* 资源对象
*/
private List<UnionEnterpriseResourceVO> unionEnterpriseResourceList;
public String getUserName() {
return userName;
}
public UnionEnterpriseListVO setUserName(String userName) {
this.userName = userName;
return this;
}
public String getPhoneNumber() {
return phoneNumber;
}
public UnionEnterpriseListVO setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
return this;
}
public String getPhoneAreaCode() {
return phoneAreaCode;
}
public UnionEnterpriseListVO setPhoneAreaCode(String phoneAreaCode) {
this.phoneAreaCode = phoneAreaCode;
return this;
}
public String getEnterpriseName() {
return enterpriseName;
}
public UnionEnterpriseListVO setEnterpriseName(String enterpriseName) {
this.enterpriseName = enterpriseName;
return this;
}
public String getCompanyName() {
return companyName;
}
public UnionEnterpriseListVO setCompanyName(String companyName) {
this.companyName = companyName;
return this;
}
public String getAddress() {
return address;
}
public UnionEnterpriseListVO setAddress(String address) {
this.address = address;
return this;
}
public Integer getStatusFlag() {
return statusFlag;
}
public UnionEnterpriseListVO setStatusFlag(Integer statusFlag) {
this.statusFlag = statusFlag;
return this;
}
public Date getRelieveTime() {
return relieveTime;
}
public UnionEnterpriseListVO setRelieveTime(Date relieveTime) {
this.relieveTime = relieveTime;
return this;
}
public Date getLastRelieveTime() {
return lastRelieveTime;
}
public UnionEnterpriseListVO setLastRelieveTime(Date lastRelieveTime) {
this.lastRelieveTime = lastRelieveTime;
return this;
}
public Integer getRelieveEffectDate() {
return relieveEffectDate;
}
public UnionEnterpriseListVO setRelieveEffectDate(Integer relieveEffectDate) {
this.relieveEffectDate = relieveEffectDate;
return this;
}
public List<UnionEnterpriseResourceVO> getUnionEnterpriseResourceList() {
return unionEnterpriseResourceList;
}
public UnionEnterpriseListVO setUnionEnterpriseResourceList(List<UnionEnterpriseResourceVO> unionEnterpriseResourceList) {
this.unionEnterpriseResourceList = unionEnterpriseResourceList;
return this;
}
public String getEnterpriseId() {
return enterpriseId;
}
public UnionEnterpriseListVO setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId;
return this;
}
@Override
public String toString() {
return "UnionEnterpriseListVO{" +
"userName='" + userName + '\'' +
", phoneNumber='" + phoneNumber + '\'' +
", phoneAreaCode='" + phoneAreaCode + '\'' +
", enterpriseName='" + enterpriseName + '\'' +
", companyName='" + companyName + '\'' +
", address='" + address + '\'' +
", enterpriseId='" + enterpriseId + '\'' +
", statusFlag=" + statusFlag +
", relieveTime=" + relieveTime +
", lastRelieveTime=" + lastRelieveTime +
", relieveEffectDate=" + relieveEffectDate +
", unionEnterpriseResourceList=" + unionEnterpriseResourceList +
'}';
}
}
package com.gic.enterprise.web.vo.union;
import java.io.Serializable;
/**
* 联合商户列表资源对象
* @ClassName:
* @Description: 

* @author guojuxing

* @date 2021/2/2 2:19 PM

*/
public class UnionEnterpriseResourceVO implements Serializable{
private static final long serialVersionUID = -2481613822106400333L;
/**
* 1:用户域资源 2:门店资源 3:商品资源
*/
private Integer resourceType;
/**
* 授权状态 1:未授权 2:资源处理中 3:已授权 4:授权失败 5:部分失败 6:等待解除 7:资源解除中 8:已解除联合
*/
private Integer authStatus;
/**
* 备注
*/
private String remark;
public Integer getResourceType() {
return resourceType;
}
public UnionEnterpriseResourceVO setResourceType(Integer resourceType) {
this.resourceType = resourceType;
return this;
}
public Integer getAuthStatus() {
return authStatus;
}
public UnionEnterpriseResourceVO setAuthStatus(Integer authStatus) {
this.authStatus = authStatus;
return this;
}
public String getRemark() {
return remark;
}
public UnionEnterpriseResourceVO setRemark(String remark) {
this.remark = remark;
return this;
}
@Override
public String toString() {
return "UnionEnterpriseResourceVO{" +
"resourceType=" + resourceType +
", authStatus=" + authStatus +
", remark='" + remark + '\'' +
'}';
}
}
package com.gic.enterprise.web.vo.union;
import java.io.Serializable;
/**
* 资源组
* @ClassName:
* @Description: 

* @author guojuxing

* @date 2021/2/2 1:55 PM

*/
public class UnionResourceGroupVO implements Serializable{
private static final long serialVersionUID = -1403789003084162857L;
/**
*
*/
private Integer resourceGroupId;
/**
* 资源名称
*/
private String resourceGroupName;
public Integer getResourceGroupId() {
return resourceGroupId;
}
public UnionResourceGroupVO setResourceGroupId(Integer resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
public String getResourceGroupName() {
return resourceGroupName;
}
public UnionResourceGroupVO setResourceGroupName(String resourceGroupName) {
this.resourceGroupName = resourceGroupName;
return this;
}
@Override
public String toString() {
return "UnionResourceGroupVO{" +
"resourceGroupId=" + resourceGroupId +
", resourceGroupName='" + resourceGroupName + '\'' +
'}';
}
}
......@@ -143,4 +143,10 @@
<dubbo:reference interface="com.gic.member.config.api.service.EnterpriseConfigApiService" id="enterpriseConfigApiService" timeout="6000" retries="0"/>
<dubbo:reference interface="com.gic.enterprise.service.EnterpriseGoodsResourceApiService" id="enterpriseGoodsResourceApiService" timeout="6000" retries="0"/>
<dubbo:reference interface="com.gic.spark.api.service.SparkJobApiService" id="sparkJobApiService" timeout="6000" retries="0"/>
<!--短信发送-->
<dubbo:reference interface="com.gic.marketing.process.api.service.sms.SmsSendApiService" id="smsSendApiService" timeout="60000" />
<!--受审组-->
<dubbo:reference interface="com.gic.auth.service.AuditedGroupApiService" id="auditedGroupApiService" timeout="6000" />
<dubbo:reference interface="com.gic.auth.service.AccountGroupApiService" id="accountGroupApiService" timeout="6000" />
</beans>
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