From a820ec5dc1682ac0a31fcbdba3eb4d2c0fe74b64 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 16 七月 2024 17:11:45 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/main/java/com/mindskip/xzs/domain/enums/YesOrNoEnum.java | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/mindskip/xzs/domain/enums/YesOrNoEnum.java b/src/main/java/com/mindskip/xzs/domain/enums/YesOrNoEnum.java index ba27dd7..6d226f9 100644 --- a/src/main/java/com/mindskip/xzs/domain/enums/YesOrNoEnum.java +++ b/src/main/java/com/mindskip/xzs/domain/enums/YesOrNoEnum.java @@ -1,6 +1,7 @@ package com.mindskip.xzs.domain.enums; import com.baomidou.mybatisplus.annotation.EnumValue; +import com.fasterxml.jackson.annotation.JsonValue; import lombok.Getter; /** @@ -10,16 +11,17 @@ @Getter public enum YesOrNoEnum { - YES("yes", "鏄�"), - NO("yes", "鍚�"), + YES(1, "鏄�"), + NO(0, "鍚�"), ; @EnumValue - private final String value; + @JsonValue + private final Integer value; private final String desc; - YesOrNoEnum(String value, String desc) { + YesOrNoEnum(Integer value, String desc) { this.value = value; this.desc = desc; } -- Gitblit v1.8.0