许鹏程
2023-08-21 70e8127f4c19dcb3657d82772640971377053f51
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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));
    }
 
}