forked from baskbuddy/zhangshun
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
876 B
26 lines
876 B
package com.mydreamjob.company.dto;
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import jakarta.validation.constraints.NotBlank;
|
|
import jakarta.validation.constraints.Size;
|
|
import lombok.Data;
|
|
|
|
@Data
|
|
public class CompanyCreateRequest {
|
|
@NotBlank(message = "company name is required")
|
|
@Size(max = 100)
|
|
private String name;
|
|
|
|
private String logoUrl;
|
|
private String description;
|
|
private String industry;
|
|
|
|
@Size(max = 40, message = "company size must be at most 40 characters")
|
|
@Schema(types = {"string", "null"}, maxLength = 40,
|
|
description = "企业规模,≤40 字符。缺省/null:创建存 NULL;空串或纯空白清空为 NULL;"
|
|
+ "非空去两端空白后保存;超过 40 字符拒绝且不截断。")
|
|
private String companySize;
|
|
|
|
private String website;
|
|
private String address;
|
|
}
|
|
|