刘帅
2026-09-08 c438598b641e52a458c7e64519284913db5b5967
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package cn.mb.cloud.auth.feignclient;
 
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
 
import java.util.Map;
 
/** 写入其他服务中的统一审计库。审计失败由调用方吞掉,不能阻断登录。 */
@FeignClient(name = "mb-cloud-other", contextId = "authAccountAuditClient")
public interface AccountAuditClient {
    @PostMapping("/internal/audit-logs")
    void append(@RequestBody Map<String, Object> auditLog);
}