PageStyle.java 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. package com.uas.sso.entity;
  2. import com.alibaba.fastjson.annotation.JSONField;
  3. import org.codehaus.jackson.annotate.JsonIgnore;
  4. import javax.persistence.*;
  5. import java.io.Serializable;
  6. /**
  7. * @author wangmh
  8. * @create 2018-02-05 8:47
  9. * @desc 页面对应用独特样式
  10. **/
  11. @Entity
  12. @Table(name = "sso$app$style")
  13. public class PageStyle implements Serializable {
  14. /**
  15. *
  16. */
  17. private static final long serialVersionUID = 1L;
  18. /**
  19. * 应用Id
  20. */
  21. @Id
  22. @Column(name = "app_uid")
  23. private String appId;
  24. /**
  25. * 应用
  26. */
  27. @OneToOne(fetch = FetchType.LAZY, cascade = {CascadeType.ALL})
  28. @JoinColumn(name = "app_uid", insertable = false, updatable = false)
  29. private App app;
  30. /**
  31. * 应用描述
  32. */
  33. @Column(name = "app_desc")
  34. private String desc;
  35. /**
  36. * logo图片
  37. */
  38. @Column(name = "logo_url")
  39. private String logoUrl;
  40. /**
  41. * 背景图片
  42. */
  43. @Column(name = "bg_url")
  44. private String bgUrl;
  45. /**
  46. * 背景颜色
  47. */
  48. @Column(name = "bg_color")
  49. private String bgColor;
  50. /**
  51. * 背景图片链接
  52. */
  53. @Column(name = "bg_link")
  54. private String bgLink;
  55. /**
  56. * 主标题
  57. */
  58. @Column(name = "title")
  59. private String title;
  60. /**
  61. * 副标题
  62. */
  63. @Column(name = "subtitle")
  64. private String subtitle;
  65. /**
  66. * 按钮样式(json字符串)
  67. */
  68. @Column(name = "btns")
  69. private String btns;
  70. /**
  71. * 字体颜色
  72. */
  73. @Column(name = "font_color")
  74. private String fontColor;
  75. /**
  76. * 相对字体颜色
  77. */
  78. @Column(name = "reserve_color")
  79. private String reserveColor;
  80. public String getAppId() {
  81. return appId;
  82. }
  83. public void setAppId(String appId) {
  84. this.appId = appId;
  85. }
  86. @JsonIgnore
  87. @JSONField(serialize = false)
  88. public App getApp() {
  89. return app;
  90. }
  91. public void setApp(App app) {
  92. this.app = app;
  93. }
  94. public String getDesc() {
  95. return desc;
  96. }
  97. public void setDesc(String desc) {
  98. this.desc = desc;
  99. }
  100. public String getLogoUrl() {
  101. return logoUrl;
  102. }
  103. public void setLogoUrl(String logoUrl) {
  104. this.logoUrl = logoUrl;
  105. }
  106. public String getBgUrl() {
  107. return bgUrl;
  108. }
  109. public void setBgUrl(String bgUrl) {
  110. this.bgUrl = bgUrl;
  111. }
  112. public String getBgColor() {
  113. return bgColor;
  114. }
  115. public void setBgColor(String bgColor) {
  116. this.bgColor = bgColor;
  117. }
  118. public String getBgLink() {
  119. return bgLink;
  120. }
  121. public void setBgLink(String bgLink) {
  122. this.bgLink = bgLink;
  123. }
  124. public String getTitle() {
  125. return title;
  126. }
  127. public void setTitle(String title) {
  128. this.title = title;
  129. }
  130. public String getSubtitle() {
  131. return subtitle;
  132. }
  133. public void setSubtitle(String subtitle) {
  134. this.subtitle = subtitle;
  135. }
  136. public String getBtns() {
  137. return btns;
  138. }
  139. public void setBtns(String btns) {
  140. this.btns = btns;
  141. }
  142. public String getFontColor() {
  143. return fontColor;
  144. }
  145. public void setFontColor(String fontColor) {
  146. this.fontColor = fontColor;
  147. }
  148. public String getReserveColor() {
  149. return reserveColor;
  150. }
  151. public void setReserveColor(String reserveColor) {
  152. this.reserveColor = reserveColor;
  153. }
  154. }