Commit edb4b83e by guojuxing

达摩产品情报站

parent 51ded2ca
package com.gic.operation.web.controller;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.enterprise.dto.ProductMarketDTO;
import com.gic.enterprise.qo.ProductMarketQO;
import com.gic.enterprise.service.ProductMarketApiService;
import com.gic.enterprise.utils.ResultControllerUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 达摩情报
* @ClassName:
* @Description: 

* @author guojuxing

* @date 2021/5/18 3:20 PM

*/
@RestController
@RequestMapping("/product-market")
public class ProductMarketController {
@Autowired
private ProductMarketApiService productMarketApiService;
/**
* 新增情报
* @param productMarketDTO
* @return
*/
@RequestMapping("save-product-market")
public RestResponse saveProductMarket(ProductMarketDTO productMarketDTO) {
return ResultControllerUtils.commonResult(productMarketApiService.saveProductMarket(productMarketDTO));
}
/**
* 编辑情报
* @param productMarketDTO
* @return
*/
@RequestMapping("update-product-market")
public RestResponse updateProductMarket(ProductMarketDTO productMarketDTO) {
return ResultControllerUtils.commonResult(productMarketApiService.updateProductMarket(productMarketDTO));
}
@RequestMapping("delete-product-market")
public RestResponse deleteProductMarket(Integer productMarketId) {
return ResultControllerUtils.commonResult(productMarketApiService.deleteProductMarket(productMarketId));
}
@RequestMapping("page-product-market")
public RestResponse pageProductMarket(ProductMarketQO params) {
return ResultControllerUtils.commonResult(productMarketApiService.pageProductMarket(params));
}
}
......@@ -93,4 +93,6 @@
<dubbo:reference interface="com.gic.authcenter.api.service.GicDepartmentService" id="gicDepartmentService" timeout="6000" />
<dubbo:reference interface="com.gic.member.config.api.service.MemberCardApiService" id="memberCardApiService" timeout="6000" />
<dubbo:reference interface="com.gic.open.api.service.EnterpriseLicenseApiService" id="enterpriseLicenseApiService" timeout="6000" />
<dubbo:reference interface="com.gic.enterprise.service.ProductMarketApiService" id="productMarketApiService" timeout="6000" />
</beans>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment