ICSPersonApi.java
1.12 KB
package com.huaheng.api.U8.controller;
import com.huaheng.api.U8.domain.ICSPersonModel;
import com.huaheng.api.U8.service.ICSPersonApiService;
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/user")
@Api(tags = {"user"}, description = "人员档案接口")
public class ICSPersonApi extends BaseController{
@Autowired
private ICSPersonApiService icsPersonApiService;
/**
* 同步人员档案
*/
// @RequiresPermissions("api:ICSInventory")
@Log(title = "人员档案添加", action = BusinessType.INSERT)
@PostMapping("/ICSPersonApi")
@ResponseBody
public AjaxResult ICSPerson(@RequestBody ICSPersonModel icsPerson)
{
AjaxResult ajaxResult = icsPersonApiService.ICSPerson(icsPerson);
return ajaxResult;
}
}