wenminjie
2026-08-04 93414e8ee25852aca467213402585d0e65c08a4a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package com.talentcard.server.request;
 
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
 
@Schema(name = "后台票包兑换码状态请求", description = "后台维护票包兑换码状态")
public record TicketPackageCodeStatusRequest(
        @Schema(description = "兑换码状态:AVAILABLE可发放、VOID作废、USED已使用", example = "VOID", requiredMode = Schema.RequiredMode.REQUIRED)
        @NotBlank(message = "兑换码状态不能为空")
        @Size(max = 32, message = "兑换码状态长度不能超过32")
        String status,
 
        @Schema(description = "备注", example = "测试码作废")
        @Size(max = 500, message = "备注长度不能超过500")
        String remark
) {
}