chore: remove deprecated horses, clubs, officials, and persons services

- Deleted obsolete modules related to horses, clubs, officials, and persons services, including their configurations, build files, and database provisioning scripts.
- Cleaned up associated references in the project structure (e.g., `settings.gradle.kts`).
- Removed unused database tables and Spring beans related to these domains.

Signed-off-by: Stefan Mogeritsch <stefan.mo.co@gmail.com>
This commit is contained in:
2026-03-28 16:50:49 +01:00
parent 2cb3f0b125
commit c806660685
181 changed files with 4121 additions and 8694 deletions
@@ -0,0 +1,11 @@
package at.mocode.identity.service
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication(scanBasePackages = ["at.mocode.identity", "at.mocode.infrastructure.security"])
class IdentityServiceApplication
fun main(args: Array<String>) {
runApplication<IdentityServiceApplication>(*args)
}
@@ -0,0 +1,18 @@
package at.mocode.identity.service.config
import at.mocode.identity.domain.repository.ProfileRepository
import at.mocode.identity.domain.service.ProfileService
import at.mocode.identity.infrastructure.persistence.ExposedProfileRepository
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
@Configuration
class IdentityConfig {
@Bean
fun profileRepository(): ProfileRepository = ExposedProfileRepository()
@Bean
fun profileService(profileRepository: ProfileRepository): ProfileService =
ProfileService(profileRepository)
}
@@ -0,0 +1,46 @@
package at.mocode.identity.service.web
import at.mocode.identity.domain.model.DomProfil
import at.mocode.identity.domain.service.ProfileService
import org.springframework.security.core.annotation.AuthenticationPrincipal
import org.springframework.security.oauth2.jwt.Jwt
import org.springframework.web.bind.annotation.*
@RestController
@RequestMapping("/api/v1/profiles")
class ProfileController(
private val profileService: ProfileService
) {
@GetMapping("/me")
suspend fun getMyProfile(@AuthenticationPrincipal jwt: Jwt): DomProfil? {
return profileService.getProfileByUserId(jwt.subject)
}
@PostMapping("/link/{satznummer}")
suspend fun linkToZns(
@AuthenticationPrincipal jwt: Jwt,
@PathVariable satznummer: String
): DomProfil {
return profileService.linkUserToZns(jwt.subject, satznummer)
}
@PutMapping("/me")
suspend fun updateMyProfile(
@AuthenticationPrincipal jwt: Jwt,
@RequestBody request: ProfileUpdateRequest
): DomProfil {
return profileService.updateProfile(
userId = jwt.subject,
logoUrl = request.logoUrl,
bio = request.bio,
contactEmail = request.contactEmail
)
}
}
data class ProfileUpdateRequest(
val logoUrl: String? = null,
val bio: String? = null,
val contactEmail: String? = null
)