Commit 3eb12251 by 徐高华

我的客户

parent 748758c2
......@@ -36,4 +36,16 @@ public class WebBaseController {
response.setErrorCode(errCode.getCode());
return response;
}
public HaobanResponse success(Object obj) {
return resultResponse(HaoBanErrCode.ERR_1, obj, null);
}
public HaobanResponse fail(String message) {
HaobanResponse response = new HaobanResponse();
response.setMessage(message);
response.setErrorCode(HaoBanErrCode.ERR_OTHER.getCode());
response.setDetailError(message);
return response;
}
}
package com.gic.haoban.manage.web.controller.member;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import com.gic.haoban.common.utils.HaobanResponse;
import com.gic.haoban.manage.web.controller.WebBaseController;
import com.gic.member.api.dto.GradeBaseDTO;
import com.gic.member.api.service.GradeService;
@RestController
public class MemberController extends WebBaseController {
@Autowired
private GradeService gradeService ;
@ResponseBody
@RequestMapping("/list-enterprise-grade")
public HaobanResponse listGrade(String enterpriseId) {
List<GradeBaseDTO> list = this.gradeService.listGrade(enterpriseId) ;
return this.success(list);
}
}
......@@ -13,6 +13,7 @@
<!-- 应用名称 -->
<dubbo:application name="haoban-manage3-wx"/>
<dubbo:protocol name="dubbo" port="30010"/>
<dubbo:reference interface="com.gic.member.api.service.GradeService" id="gradeService" />
<dubbo:reference interface="com.gic.enterprise.api.service.EnterpriseUseForbidService" id="enterpriseUseForbidService"/>
<dubbo:reference interface="com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService"
id="staffDepartmentRelatedApiService"/>
......
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