ICSCustomerApi.java 1.14 KB
package com.huaheng.api.U8.controller;

import com.huaheng.api.U8.domain.ICSCustomerModel;
import com.huaheng.api.U8.service.ICSCustomerService;
import com.huaheng.framework.aspectj.lang.annotation.Log;
import com.huaheng.framework.aspectj.lang.constant.BusinessType;
import com.huaheng.framework.web.controller.BaseController;
import com.huaheng.framework.web.domain.AjaxResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/customer")
@Api(tags = {"customer"}, description = "客户档案接口")
public class ICSCustomerApi extends BaseController {

    @Autowired
    private ICSCustomerService icsCustomerService;
    /**
     * 同步客户档案
     */
    //    @RequiresPermissions("api:ICSInventory")
    @Log(title = "客户档案添加", action = BusinessType.INSERT)
    @PostMapping("/ICSCustomerApi")
    @ResponseBody
    public AjaxResult ICSCustomer(@RequestBody ICSCustomerModel icsCustomer)
    {
        AjaxResult ajaxResult = icsCustomerService.ICSCustomer(icsCustomer);
        return ajaxResult;
    }

}