zxl
2025-05-14 c97faa4eb3972869bfbb1e1e5915787ab6cbc58e
新增vo,form
2个文件已添加
59 ■■■■■ 已修改文件
framework/src/main/java/cn/lili/modules/lmk/domain/form/CustomerTagRefForm.java 42 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
framework/src/main/java/cn/lili/modules/lmk/domain/query/CustomerTagRefQuery.java 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
framework/src/main/java/cn/lili/modules/lmk/domain/form/CustomerTagRefForm.java
New file
@@ -0,0 +1,42 @@
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;
    }
}
framework/src/main/java/cn/lili/modules/lmk/domain/query/CustomerTagRefQuery.java
New file
@@ -0,0 +1,17 @@
package cn.lili.modules.lmk.domain.query;
import cn.lili.base.AbsQuery;
import io.swagger.annotations.ApiModel;
import lombok.Data;
/**
 * 客户标签中间表查询
 *
 * @author zxl
 * @since 2025-05-14
 */
@Data
@ApiModel(value = "LmkCustomerTagRef查询参数", description = "客户标签中间表查询参数")
public class CustomerTagRefQuery extends AbsQuery {
}