package com.tashow.cloud.systemapi.api.logger;

import com.tashow.cloud.common.pojo.CommonResult;
import com.tashow.cloud.systemapi.api.logger.dto.LoginLogCreateReqDTO;
import com.tashow.cloud.systemapi.enums.ApiConstants;
import jakarta.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = ApiConstants.NAME) // TODO 芋艿：fallbackFactory =
/** RPC 服务 - 登录日志 */
public interface LoginLogApi {

  String PREFIX = ApiConstants.PREFIX + "/login-log";

  @PostMapping(PREFIX + "/create")
  /** 创建登录日志 */
  CommonResult<Boolean> createLoginLog(@Valid @RequestBody LoginLogCreateReqDTO reqDTO);
}
