|
|
@ -4,6 +4,7 @@ import com.baiye.modules.distribute.qo.HomePageQo;
|
|
|
|
import com.baiye.modules.distribute.service.HomepageService;
|
|
|
|
import com.baiye.modules.distribute.service.HomepageService;
|
|
|
|
import com.baiye.result.R;
|
|
|
|
import com.baiye.result.R;
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
|
|
|
|
|
import io.swagger.v3.oas.annotations.Parameter;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
@ -31,13 +32,13 @@ public class HomepageController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/enter")
|
|
|
|
@PostMapping("/enter")
|
|
|
|
@Operation(description = "渠道录入")
|
|
|
|
@Operation(description = "渠道录入--管理员")
|
|
|
|
public R<Object> channelEnterClue(@RequestBody HomePageQo homePageQo) {
|
|
|
|
public R<Object> channelEnterClue(@RequestBody HomePageQo homePageQo) {
|
|
|
|
return R.ok(homepageService.channelEnterClue(homePageQo));
|
|
|
|
return R.ok(homepageService.channelEnterClue(homePageQo));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/assigned")
|
|
|
|
@PostMapping("/assigned")
|
|
|
|
@Operation(description = "渠道分发")
|
|
|
|
@Operation(description = "渠道分发--管理员")
|
|
|
|
public R<Object> channelAssignedClue(@RequestBody HomePageQo homePageQo) {
|
|
|
|
public R<Object> channelAssignedClue(@RequestBody HomePageQo homePageQo) {
|
|
|
|
return R.ok(homepageService.channelAssignedClue(homePageQo));
|
|
|
|
return R.ok(homepageService.channelAssignedClue(homePageQo));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -47,4 +48,16 @@ public class HomepageController {
|
|
|
|
public void channelClueExport(HttpServletResponse response, @RequestBody HomePageQo homePageQo) {
|
|
|
|
public void channelClueExport(HttpServletResponse response, @RequestBody HomePageQo homePageQo) {
|
|
|
|
homepageService.channelClueExport(response, homePageQo);
|
|
|
|
homepageService.channelClueExport(response, homePageQo);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/distributors")
|
|
|
|
|
|
|
|
@Operation(summary = "分发员")
|
|
|
|
|
|
|
|
public R<Object> distributorsEnterClue(@RequestBody HomePageQo homePageQo) {
|
|
|
|
|
|
|
|
return R.ok(homepageService.distributorsEnterClue(homePageQo));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/salesman")
|
|
|
|
|
|
|
|
@Operation(summary = "业务员")
|
|
|
|
|
|
|
|
public R<Object> salesmanEnterClue(@RequestBody HomePageQo homePageQo) {
|
|
|
|
|
|
|
|
return R.ok(homepageService.salesmanEnterClue(homePageQo));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|