master
parent
5100a3637a
commit
2846d1695b
@ -0,0 +1,62 @@
|
||||
package com.gszc.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.gszc.build.Result;
|
||||
import com.gszc.build.ResultBuilder;
|
||||
import com.gszc.service.impl.CustomServiceImpl;
|
||||
import com.gszc.service.impl.PcUserServiceImpl;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(value = "工商注册 API", tags = {"后台公司api 2.0"})
|
||||
@RestController
|
||||
@RequestMapping("/pc/custom")
|
||||
public class PcCustomV2Controller {
|
||||
|
||||
@Autowired
|
||||
CustomServiceImpl customService;
|
||||
|
||||
@Autowired
|
||||
PcUserServiceImpl pcUserService;
|
||||
|
||||
@PostMapping("/queryCustomCount")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "查看待接单、待认证公司数量", notes = "查看待接单、待认证公司数量")
|
||||
public Result queryCustomCount() {
|
||||
|
||||
JSONObject customs = customService.queryCustomCount();
|
||||
return ResultBuilder.withPayload(customs).build();
|
||||
}
|
||||
|
||||
@PostMapping("/pcLogoutCustomList")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "已注销列表", notes = "已注销列表")
|
||||
public Result pcEnableCustomList(Integer pageNum,Integer pageSize) {
|
||||
|
||||
JSONObject customs = customService.pcLogoutCustomList(pageNum,pageSize);
|
||||
return ResultBuilder.withPayload(customs).build();
|
||||
}
|
||||
|
||||
@PostMapping("/pcDeleteCustomList")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "已删除列表", notes = "已删除列表")
|
||||
public Result pcDeleteCustomList(Integer pageNum,Integer pageSize) {
|
||||
|
||||
JSONObject customs = customService.pcDeleteCustomList(pageNum,pageSize);
|
||||
return ResultBuilder.withPayload(customs).build();
|
||||
}
|
||||
|
||||
@PostMapping("/revertCustom")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "删除公司还原", notes = "删除公司还原")
|
||||
public Result revertCustom(String customId) {
|
||||
|
||||
customService.revertCustom(customId);
|
||||
return ResultBuilder.success().build();
|
||||
}
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package com.gszc.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.gszc.build.Result;
|
||||
import com.gszc.build.ResultBuilder;
|
||||
import com.gszc.service.impl.InvoiceServiceImpl;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(value = "工商注册 API", tags = {"后台开票api 2.0"})
|
||||
@RestController
|
||||
@RequestMapping("/pc/invoice")
|
||||
public class PcInvoiceV2Controller {
|
||||
|
||||
@Autowired
|
||||
InvoiceServiceImpl invoiceService;
|
||||
|
||||
@PostMapping("/queryInvoiceCount")
|
||||
@ApiImplicitParam(name = "token", value = "token", required = true, dataType = "String", paramType = "header")
|
||||
@ApiOperation(value = "查看待开票数量", notes = "查看待开票数量")
|
||||
public Result queryInvoiceCount(String copycatId) {
|
||||
|
||||
JSONObject customs = invoiceService.queryInvoiceCount(copycatId);
|
||||
return ResultBuilder.withPayload(customs).build();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue