package com.sikey.wa04.business.infrastructure.dto.request.contact;

import com.sikey.wa04.common.dto.header.GenericManufacturerHeader;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

@Data
@Accessors(chain = true)
public class AddFriendRequest {
    @NotBlank(message = "好友码不能为空")
    @Length(min = 4, max = 4, message = "好友码长度必须为4")
    private String code;

    /**
     * 添加人用户id
     * 从 token 里获取
     */
    private String id;

    /**
     * 头部
     */
    GenericManufacturerHeader headers;
}
