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 CarWashJumpConfigRequest(
|
@Schema(description = "跳转类型:miniProgram第三方小程序、web网页、none不跳转", example = "miniProgram", requiredMode = Schema.RequiredMode.REQUIRED)
|
@NotBlank(message = "跳转类型不能为空")
|
@Size(max = 32, message = "跳转类型长度不能超过32")
|
String externalLinkType,
|
|
@Schema(description = "第三方小程序AppId;externalLinkType=miniProgram时必填", example = "wx1234567890abcdef")
|
@Size(max = 64, message = "第三方小程序AppId长度不能超过64")
|
String externalMiniProgramAppId,
|
|
@Schema(description = "第三方小程序页面路径;可携带商家参数", example = "pages/index/index?merchantId=1001")
|
@Size(max = 500, message = "第三方小程序页面路径长度不能超过500")
|
String externalMiniProgramPath,
|
|
@Schema(description = "第三方网页地址;externalLinkType=web时使用", example = "https://example.com/car-wash")
|
@Size(max = 500, message = "第三方网页地址长度不能超过500")
|
String externalWebUrl,
|
|
@Schema(description = "服务状态:1启用,0停用;不传默认启用", example = "1")
|
Integer status
|
) {
|
}
|