|
@@ -7,6 +7,7 @@ import com.diagbot.annotation.SysLogger;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.entity.LantoneProduct;
|
|
|
import com.diagbot.entity.wrapper.LantoneProductWrapper;
|
|
|
+import com.diagbot.entity.wrapper.OpendProductWrapper;
|
|
|
import com.diagbot.facade.LantoneProductFacade;
|
|
|
import com.diagbot.vo.OppendedProductVO;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -40,7 +41,7 @@ public class DiagLantoneProductController {
|
|
|
@PostMapping("/addProducts")
|
|
|
@SysLogger("addProducts")
|
|
|
@Transactional
|
|
|
- public RespDTO<LantoneProduct> addProducts(LantoneProduct lantoneProduct){
|
|
|
+ public RespDTO<Boolean> addProducts(LantoneProduct lantoneProduct){
|
|
|
return RespDTO.onSuc(lantoneProductFacade.addProducts(lantoneProduct));
|
|
|
}
|
|
|
|
|
@@ -49,7 +50,7 @@ public class DiagLantoneProductController {
|
|
|
"根据每页显示条数,默认 10,和当前页<br>")
|
|
|
@PostMapping("/selectProduct")
|
|
|
@SysLogger("selectProduct")
|
|
|
- public RespDTO<LantoneProduct> selectProduct(Page page , String name){
|
|
|
+ public RespDTO<IPage<LantoneProduct>> selectProduct(Page page , String name){
|
|
|
IPage<LantoneProduct> pages = lantoneProductFacade.selectProduct(page,name);
|
|
|
return RespDTO.onSuc(pages);
|
|
|
}
|
|
@@ -59,7 +60,7 @@ public class DiagLantoneProductController {
|
|
|
@PostMapping("/updateProduct")
|
|
|
@SysLogger("updateProduct")
|
|
|
@Transactional
|
|
|
- public RespDTO<LantoneProduct> updateProduct(LantoneProduct lantoneProduct){
|
|
|
+ public RespDTO<Boolean> updateProduct(LantoneProduct lantoneProduct){
|
|
|
return RespDTO.onSuc(lantoneProductFacade.updateProduct(lantoneProduct));
|
|
|
}
|
|
|
|
|
@@ -68,7 +69,7 @@ public class DiagLantoneProductController {
|
|
|
@PostMapping("/deleteProduct")
|
|
|
@SysLogger("deleteProduct")
|
|
|
@Transactional
|
|
|
- public RespDTO<LantoneProduct> deleteProduct(LantoneProduct lantoneProduct){
|
|
|
+ public RespDTO<Boolean> deleteProduct(LantoneProduct lantoneProduct){
|
|
|
return RespDTO.onSuc(lantoneProductFacade.deleteProduct(lantoneProduct));
|
|
|
}
|
|
|
|
|
@@ -77,7 +78,7 @@ public class DiagLantoneProductController {
|
|
|
@PostMapping("/productStatus")
|
|
|
@SysLogger("productStatus")
|
|
|
@Transactional
|
|
|
- public RespDTO<LantoneProduct> productStatus(LantoneProduct lantoneProduct){
|
|
|
+ public RespDTO<Boolean> productStatus(LantoneProduct lantoneProduct){
|
|
|
return RespDTO.onSuc(lantoneProductFacade.productStatus(lantoneProduct));
|
|
|
}
|
|
|
|
|
@@ -88,7 +89,7 @@ public class DiagLantoneProductController {
|
|
|
)
|
|
|
@PostMapping("/opendedProduct")
|
|
|
@SysLogger("opendedProduct")
|
|
|
- public RespDTO<LantoneProduct> opendedProduct(OppendedProductVO oppendedProductVO){
|
|
|
+ public RespDTO<List<OpendProductWrapper>> opendedProduct(OppendedProductVO oppendedProductVO){
|
|
|
|
|
|
return RespDTO.onSuc(lantoneProductFacade.opendedProduct(oppendedProductVO));
|
|
|
}
|
|
@@ -96,7 +97,7 @@ public class DiagLantoneProductController {
|
|
|
@ApiOperation(value = "根据用户id查询当前用户已开通产品[by:zhaops]")
|
|
|
@PostMapping("/opendedProductByCurrentUser")
|
|
|
@SysLogger("opendedProductByCurrentUser")
|
|
|
- public RespDTO opendedProductByCurrentUser() {
|
|
|
+ public RespDTO<List<LantoneProductWrapper>> opendedProductByCurrentUser() {
|
|
|
List<LantoneProductWrapper> list = lantoneProductFacade.opendedProductByCurrentUser();
|
|
|
return RespDTO.onSuc(list);
|
|
|
}
|