feat: add operations configuration and DDD base types
parent
bfde528aa7
commit
dd3633c6b2
@ -0,0 +1,4 @@
|
|||||||
|
package com.yau.digitalrmb.issuance.domain.model;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.UUID;
|
||||||
|
public record IssuanceApplicationId(UUID value) { public IssuanceApplicationId { Objects.requireNonNull(value, "value must not be null"); } }
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
package com.yau.digitalrmb.shared.config;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.models.OpenAPI;
|
||||||
|
import io.swagger.v3.oas.models.info.Info;
|
||||||
|
import io.swagger.v3.oas.models.security.SecurityScheme;
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
|
||||||
|
@Configuration
|
||||||
|
public class OpenApiConfig {
|
||||||
|
@Bean
|
||||||
|
OpenAPI openAPI() {
|
||||||
|
return new OpenAPI().info(new Info().title("数字人民币教学仿真后端").version("0.1.0"))
|
||||||
|
.schemaRequirement("bearerAuth", new SecurityScheme().type(SecurityScheme.Type.HTTP).scheme("bearer").bearerFormat("JWT"));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
package com.yau.digitalrmb.shared.domain;
|
||||||
|
import java.time.Instant;
|
||||||
|
import java.util.UUID;
|
||||||
|
public interface DomainEvent { UUID eventId(); Instant occurredAt(); }
|
||||||
Loading…
Reference in New Issue