Refactoring
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package dev.lions.unionflow.client.service;
|
||||
|
||||
import dev.lions.unionflow.client.dto.AuditLogDTO;
|
||||
import dev.lions.unionflow.server.api.dto.admin.response.AuditLogResponse;
|
||||
import jakarta.ws.rs.*;
|
||||
import jakarta.ws.rs.core.MediaType;
|
||||
import java.util.Map;
|
||||
@@ -13,8 +13,8 @@ import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
|
||||
* @author UnionFlow Team
|
||||
* @version 1.0
|
||||
*/
|
||||
@RegisterRestClient(baseUri = "http://localhost:8085")
|
||||
@RegisterClientHeaders
|
||||
@RegisterRestClient(configKey = "unionflow-api")
|
||||
@RegisterClientHeaders(dev.lions.unionflow.client.security.AuthHeaderFactory.class)
|
||||
@Path("/api/audit")
|
||||
public interface AuditService {
|
||||
|
||||
@@ -43,7 +43,7 @@ public interface AuditService {
|
||||
@POST
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
@Produces(MediaType.APPLICATION_JSON)
|
||||
AuditLogDTO enregistrerLog(AuditLogDTO dto);
|
||||
AuditLogResponse enregistrerLog(AuditLogResponse dto);
|
||||
|
||||
@GET
|
||||
@Path("/statistiques")
|
||||
|
||||
Reference in New Issue
Block a user