New file |
| | |
| | | package cn.lili.modules.lmk.domain.form; |
| | | |
| | | import cn.lili.base.AbsForm; |
| | | import cn.lili.group.Add; |
| | | import cn.lili.group.Update; |
| | | import cn.lili.modules.lmk.domain.entity.CustomerTagRef; |
| | | import org.springframework.beans.BeanUtils; |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import org.springframework.lang.NonNull; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * 客户标签中间表表单 |
| | | * |
| | | * @author zxl |
| | | * @since 2025-05-14 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "LmkCustomerTagRef表单", description = "客户标签中间表表单") |
| | | public class CustomerTagRefForm extends AbsForm { |
| | | |
| | | |
| | | @NotNull(message = "不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("客户id") |
| | | private Long customerId; |
| | | |
| | | @NotBlank(message = "不能为空", groups = {Add.class, Update.class}) |
| | | @ApiModelProperty("标签id") |
| | | private String customerTagId; |
| | | |
| | | public static CustomerTagRef getEntityByForm(@NonNull CustomerTagRefForm form, CustomerTagRef entity) { |
| | | if(entity == null) { |
| | | entity = new CustomerTagRef(); |
| | | } |
| | | BeanUtils.copyProperties(form, entity); |
| | | return entity; |
| | | } |
| | | |
| | | } |