package com.bonus.system.feign;

import com.bonus.common.core.web.domain.AjaxResult;
import com.bonus.system.api.domain.SysUser;
import com.bonus.system.api.domain.SysUserFace;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@FeignClient(value="bonus-smart-canteen")
@Service
@Component
public interface SmartCanteenClient {

    @ApiOperation(value = "新增账户")
    @RequestMapping(value = "/acc_info/sync",method = RequestMethod.POST)
    AjaxResult syncAccInfo(SysUser sysUser);

    @ApiOperation(value = "删除账户")
    @RequestMapping(value = "/acc_info/deleteAccInfoByUserIds",method = RequestMethod.POST)
    AjaxResult deleteAccInfoByUserIds(List<SysUser> users);

    @ApiOperation(value = "上传人脸特征")
    @RequestMapping(value = "/userFace/uploadUserFace",method = RequestMethod.POST)
    AjaxResult uploadUserFace(SysUserFace sysUserFace);
}
