generated from aura-ascend/template-service
infinity money bug :D
This is here to show a small miss with big problems. - add missing test to - TransactionEndpoints - TransactionControllerTest - update Transfer with validation for sender receiver - add SenderReceiverValidator - add SenderReceiver
This commit is contained in:
15
src/main/kotlin/ltd/lulz/annotation/SenderReceiver.kt
Normal file
15
src/main/kotlin/ltd/lulz/annotation/SenderReceiver.kt
Normal file
@@ -0,0 +1,15 @@
|
||||
package ltd.lulz.annotation
|
||||
|
||||
import jakarta.validation.Constraint
|
||||
import jakarta.validation.Payload
|
||||
import kotlin.reflect.KClass
|
||||
import ltd.lulz.annotation.validator.SenderReceiverValidator
|
||||
|
||||
@Constraint(validatedBy = [SenderReceiverValidator::class])
|
||||
@Target(AnnotationTarget.CLASS)
|
||||
@Retention(AnnotationRetention.RUNTIME)
|
||||
annotation class SenderReceiver(
|
||||
val message: String = "Receiver and Sender cant be the same account",
|
||||
val groups: Array<KClass<*>> = [],
|
||||
val payload: Array<KClass<out Payload>> = [],
|
||||
)
|
||||
Reference in New Issue
Block a user