|
@@ -0,0 +1,28 @@
|
|
|
+package com.sky.ioc.entity;
|
|
|
+
|
|
|
+import lombok.Data;
|
|
|
+
|
|
|
+import java.util.concurrent.ThreadLocalRandom;
|
|
|
+
|
|
|
+/**
|
|
|
+ * TODO
|
|
|
+ * @Description 饼状图
|
|
|
+ * @Author LunCe
|
|
|
+ * @Date 2023/3/10 14:01
|
|
|
+ **/
|
|
|
+@Data
|
|
|
+public class cake {
|
|
|
+
|
|
|
+ private String name;
|
|
|
+ private int value;
|
|
|
+
|
|
|
+
|
|
|
+ public cake(){}
|
|
|
+
|
|
|
+
|
|
|
+ public cake(String name1){
|
|
|
+ ThreadLocalRandom current = ThreadLocalRandom.current();
|
|
|
+ name = name1 ;
|
|
|
+ value = current.nextInt(50,150);
|
|
|
+ }
|
|
|
+}
|