package com.ygj.yuemum.controller.distributionchannel; import com.alibaba.fastjson.JSONObject; import com.ygj.yuemum.domain.distributionchannel.DcIntroducerApplicant; import com.ygj.yuemum.service.distributionchannel.DcIntroducerApplicantService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.Map; @RestController public class DcIntroducerApplicantController { @Autowired private DcIntroducerApplicantService dcIntroducerApplicantService; @GetMapping("/getDcIntroducerApplicants") public String getDcIntroducerApplicants(@RequestParam("page") Integer page,@RequestParam("limit") Integer limit) { Map wxVipApplicants = dcIntroducerApplicantService.getDcIntroducerApplicants(page,limit); String jso = JSONObject.toJSONString(wxVipApplicants); return jso; } @PostMapping ("/queryDcIntroducerApplicants") public String queryDcIntroducerApplicants(@ModelAttribute DcIntroducerApplicant dcIntroducerApplicant) { Map wxVipApplicants = dcIntroducerApplicantService.queryDcIntroducerApplicants(dcIntroducerApplicant); String jso = JSONObject.toJSONString(wxVipApplicants); return jso; } @PostMapping("/insertDcIntroducerApplicant") public int insertDcIntroducerApplicant(@ModelAttribute DcIntroducerApplicant dcIntroducerApplicant) { return dcIntroducerApplicantService.insertDcIntroducerApplicant(dcIntroducerApplicant); } @PostMapping("/updateDcIntroducerApplicant") public int updateDcIntroducerApplicant(@ModelAttribute DcIntroducerApplicant dcIntroducerApplicant) { return dcIntroducerApplicantService.updateDcIntroducerApplicant(dcIntroducerApplicant); } }