店铺区域接口

This commit is contained in:
张松
2025-02-19 10:31:11 +08:00
parent d8791107a6
commit 3520a4cc07
7 changed files with 78 additions and 36 deletions

View File

@@ -1,8 +1,10 @@
package com.czg.account.dto;
package com.czg.account.dto.area;
import java.io.Serializable;
import java.io.Serial;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
@@ -18,14 +20,12 @@ import lombok.NoArgsConstructor;
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ShopAreaDTO implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
public class ShopAreaEditDTO implements Serializable {
/**
* id
*/
@NotNull
private Integer id;
/**
@@ -43,8 +43,5 @@ public class ShopAreaDTO implements Serializable {
*/
private String name;
private Long createdAt;
private Long updatedAt;
}

View File

@@ -1,11 +1,13 @@
package com.czg.account.entity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.io.Serial;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
@@ -49,8 +51,10 @@ public class ShopTableArea implements Serializable {
*/
private String name;
private Long createdAt;
@Column(onInsertValue = "now()")
private LocalDateTime createdTime;
private Long updatedAt;
@Column(onInsertValue = "now()", onUpdateValue = "now()")
private Long updatedTime;
}

View File

@@ -1,5 +1,6 @@
package com.czg.account.service;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.czg.account.entity.ShopTableArea;
@@ -9,6 +10,7 @@ import com.czg.account.entity.ShopTableArea;
* @author zs
* @since 2025-02-18
*/
public interface ShopAreaService extends IService<ShopTableArea> {
public interface ShopTableAreaService extends IService<ShopTableArea> {
Page<ShopTableArea> pageInfo(Long shopId, String name);
}