feat:智能柜枚举

fix:钱包余额bug
This commit is contained in:
dzc committed 2025-04-08 15:41:57 +08:00
1 parent 6bbe3c05c0
commit 971e9cba3a
9 files changed
+125 -21

No files matched your search

@@ -0,0 +1,26 @@
package com.bsd.pjcloud.thirdparty.constant.door;
import cn.hutool.core.util.ObjectUtil;
import com.bsd.pjcloud.thirdparty.constant.ThirdZyBizEnumType;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
@AllArgsConstructor
@Getter
public enum ThirdDoorApiTypeEnum {
DOOR_API("10", "智能柜接口"),
DISCERN_API("20", "识别接口"),
;
private final String type;
private final String description;
public static ThirdDoorApiTypeEnum valueOfByType(String type) {
if (ObjectUtil.isEmpty(type)) return null;
return Arrays.stream(values()).filter(v -> ObjectUtil.equals(type, v.getType())).findFirst().get();
}
}
@@ -1,8 +1,7 @@
package com.bsd.pjcloud.thirdparty.constant;
package com.bsd.pjcloud.thirdparty.constant.door;
import cn.hutool.core.util.ObjectUtil;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import java.util.Arrays;
@@ -0,0 +1,13 @@
package com.bsd.pjcloud.thirdparty.dto.door;
import com.bsd.pjcloud.thirdparty.entity.door.ThirdDoorLogEntity;
import lombok.Data;
import java.time.LocalDateTime;
@Data
public class ThirdDoorLogDto extends ThirdDoorLogEntity {
private LocalDateTime[] createTimeList;
}