From c97faa4eb3972869bfbb1e1e5915787ab6cbc58e Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期三, 14 五月 2025 14:36:22 +0800
Subject: [PATCH] 新增vo,form

---
 framework/src/main/java/cn/lili/modules/lmk/domain/form/CustomerTagRefForm.java   |   42 ++++++++++++++++++++++++++++++++++++++++++
 framework/src/main/java/cn/lili/modules/lmk/domain/query/CustomerTagRefQuery.java |   17 +++++++++++++++++
 2 files changed, 59 insertions(+), 0 deletions(-)

diff --git a/framework/src/main/java/cn/lili/modules/lmk/domain/form/CustomerTagRefForm.java b/framework/src/main/java/cn/lili/modules/lmk/domain/form/CustomerTagRefForm.java
new file mode 100644
index 0000000..6047b7c
--- /dev/null
+++ b/framework/src/main/java/cn/lili/modules/lmk/domain/form/CustomerTagRefForm.java
@@ -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;
+    }
+
+}
diff --git a/framework/src/main/java/cn/lili/modules/lmk/domain/query/CustomerTagRefQuery.java b/framework/src/main/java/cn/lili/modules/lmk/domain/query/CustomerTagRefQuery.java
new file mode 100644
index 0000000..06b3174
--- /dev/null
+++ b/framework/src/main/java/cn/lili/modules/lmk/domain/query/CustomerTagRefQuery.java
@@ -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 {
+}
+

--
Gitblit v1.8.0