dev798
parent
540c238d39
commit
b197703fe4
|
@ -0,0 +1,19 @@
|
|||
package com.muyu.common.core.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author: wangxinyuan
|
||||
* @Date: 2024/4/1 21:28
|
||||
*/
|
||||
@Data
|
||||
public class Test {
|
||||
|
||||
private String name;
|
||||
|
||||
public static void main(String[] args) {
|
||||
Test test = new Test();
|
||||
test.setName("LXW");
|
||||
System.out.println(test);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
package com.muyu.common.core.test;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import org.springframework.boot.autoconfigure.cache.CacheProperties;
|
||||
import org.yaml.snakeyaml.Yaml;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.stream.DoubleStream;
|
||||
|
||||
/**
|
||||
* @Author: wangxinyuan
|
||||
* @Date: 2024/4/1 21:13
|
||||
*/
|
||||
public class Test {
|
||||
|
||||
|
||||
public static void main(String[] args) {
|
||||
ArrayList<Object> objects = new ArrayList<>();
|
||||
HashMap<Object, Object> jwtMap = new HashMap<>();
|
||||
Hashtable<Object, Object> objectObjectHashtable = new Hashtable<>();
|
||||
HashSet<Object> objects1 = new HashSet<>();
|
||||
CacheProperties.Redis redis = new CacheProperties.Redis();
|
||||
PageInfo<Object> pageInfo = new PageInfo<>();
|
||||
Yaml yaml = new Yaml();
|
||||
Random random = new Random(4);
|
||||
DoubleStream doubles = new Random().doubles();
|
||||
|
||||
System.out.println(objects1);
|
||||
System.out.println(objects);
|
||||
System.out.println(jwtMap);
|
||||
System.out.println(objectObjectHashtable);
|
||||
System.out.println(redis);
|
||||
System.out.println(pageInfo);
|
||||
System.out.println(yaml);
|
||||
System.out.println(random);
|
||||
System.out.println(doubles);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.muyu.common.core.test.admin;
|
||||
|
||||
import com.muyu.common.core.annotation.Excel;
|
||||
import com.muyu.common.core.domain.BaseEntity;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @Author: wangxinyuan
|
||||
* @Date: 2024/4/1 21:16
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@ApiModel
|
||||
@RestController
|
||||
public class Book extends BaseEntity {
|
||||
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Long id;
|
||||
|
||||
private Long productClassifyId;
|
||||
|
||||
@Excel(name = "商品名称")
|
||||
private String productName;
|
||||
|
||||
@Excel(name = "副标题")
|
||||
private String productSubhead;
|
||||
|
||||
|
||||
private long PRODUCTbRANDiD;
|
||||
|
||||
@Excel(name = "商品品牌id")
|
||||
private Long productBrandId;
|
||||
|
||||
|
||||
@Excel(name = "商品介绍")
|
||||
private Long PRODUCTiNTERODUCE;
|
||||
|
||||
@Excel(name = "数量")
|
||||
private Integer num;
|
||||
|
||||
private String name;
|
||||
|
||||
private String nam;
|
||||
|
||||
private Object inhjdkl;
|
||||
|
||||
private Object asd;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue