package com.product.mobile.core.controller; import com.product.core.config.CoreConst; import com.product.core.controller.support.AbstractBaseController; import com.product.core.entity.FieldSetEntity; import com.product.core.entity.RequestParameterEntity; import com.product.mobile.core.service.ContanctOrgListService; import com.product.module.sys.version.ApiVersion; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; /** * 通迅录 * @Date 2022/3/3 19:54 * @Desc */ @RestController @RequestMapping("/api/mobile") public class ContactPersonController extends AbstractBaseController { @Autowired ContanctOrgListService contanctOrgListService; @RequestMapping(value = "/contact/org/list/{version}", method = RequestMethod.POST) @ApiVersion(1) public String contactOrgList(HttpServletRequest request) { FieldSetEntity fse = null; Object bean = request.getAttribute(CoreConst.API_POST_REQUEST_DATA); if (bean != null) { RequestParameterEntity reqp = (RequestParameterEntity) bean; fse = reqp.getFormData(); } return this.OK_List(contanctOrgListService.orgList(fse)); } }