App.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package com.ruoyi.demo.entity;
  2. import com.baomidou.mybatisplus.annotation.TableField;
  3. import com.baomidou.mybatisplus.annotation.TableId;
  4. import com.baomidou.mybatisplus.annotation.TableName;
  5. import com.ruoyi.demo.entity.vo.AppVo;
  6. import lombok.Data;
  7. import lombok.NoArgsConstructor;
  8. import java.time.LocalDateTime;
  9. @Data
  10. @TableName("dl_app")
  11. @NoArgsConstructor
  12. public class App {
  13. @TableId("appkey")
  14. private String appkey;
  15. @TableField("app_logo")
  16. private String appLogo;
  17. @TableField("app_name")
  18. private String appName;
  19. @TableField("app_introduce")
  20. private String appIntroduce;
  21. @TableField("commercial_id")
  22. private String commercialId;
  23. @TableField("commercial_name")
  24. private String commercialName;
  25. @TableField("state")
  26. private Integer state;
  27. @TableField("call_back")
  28. private String callBack;
  29. @TableField("appSecret")
  30. private String appSecret;
  31. @TableField("prove_1")
  32. private String prove1;
  33. @TableField("prove_2")
  34. private String prove2;
  35. @TableField("prove_3")
  36. private String prove3;
  37. @TableField("prove_4")
  38. private String prove4;
  39. @TableField("prove_5")
  40. private String prove5;
  41. @TableField("create_time")
  42. private LocalDateTime createTime;
  43. @TableField("annotation")
  44. private String annotation;
  45. @TableField("deleted")
  46. private Integer deleted;
  47. public App(AppVo appVo) {
  48. this.appLogo = appVo.getAppLogo();
  49. this.appName = appVo.getAppName();
  50. this.appIntroduce = appVo.getAppIntroduce();
  51. this.commercialId = appVo.getCommercialId();
  52. this.commercialName = appVo.getCommercialName();
  53. this.state = appVo.getState();
  54. this.callBack = appVo.getCallBack();
  55. this.prove1 = appVo.getProve1();
  56. this.prove2 = appVo.getProve2();
  57. this.prove3 = appVo.getProve3();
  58. this.prove4 = appVo.getProve4();
  59. this.prove5 = appVo.getProve5();
  60. this.annotation = appVo.getAnnotation();
  61. }
  62. }