|
|
@@ -0,0 +1,208 @@
|
|
|
+package com.uas.sso.entity;
|
|
|
+
|
|
|
+import com.alibaba.fastjson.annotation.JSONField;
|
|
|
+import org.codehaus.jackson.annotate.JsonIgnore;
|
|
|
+
|
|
|
+import javax.persistence.*;
|
|
|
+import java.io.Serializable;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author wangmh
|
|
|
+ * @create 2018-02-05 8:47
|
|
|
+ * @desc 页面对应用独特样式
|
|
|
+ **/
|
|
|
+@Entity
|
|
|
+@Table(name = "sso$app$style")
|
|
|
+public class PageStyle implements Serializable {
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ */
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 主键
|
|
|
+ */
|
|
|
+ @Id
|
|
|
+ @Column(name = "_id")
|
|
|
+ private Long id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 应用Id
|
|
|
+ */
|
|
|
+ @Column(name = "app_uid")
|
|
|
+ private String appId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 应用
|
|
|
+ */
|
|
|
+ @OneToOne(fetch = FetchType.LAZY, cascade = {CascadeType.ALL})
|
|
|
+ @JoinColumn(name = "app_uid", insertable = false, updatable = false)
|
|
|
+ private App app;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 应用描述
|
|
|
+ */
|
|
|
+ @Column(name = "app_desc")
|
|
|
+ private String desc;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * logo图片
|
|
|
+ */
|
|
|
+ @Column(name = "logo_url")
|
|
|
+ private String logoUrl;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 背景图片
|
|
|
+ */
|
|
|
+ @Column(name = "bg_url")
|
|
|
+ private String bgUrl;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 背景颜色
|
|
|
+ */
|
|
|
+ @Column(name = "bg_color")
|
|
|
+ private String bgColor;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 背景图片链接
|
|
|
+ */
|
|
|
+ @Column(name = "bg_link")
|
|
|
+ private String bgLink;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 主标题
|
|
|
+ */
|
|
|
+ @Column(name = "title")
|
|
|
+ private String title;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 副标题
|
|
|
+ */
|
|
|
+ @Column(name = "subtitle")
|
|
|
+ private String subtitle;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 按钮样式(json字符串)
|
|
|
+ */
|
|
|
+ @Column(name = "btns")
|
|
|
+ private String btns;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 字体颜色
|
|
|
+ */
|
|
|
+ @Column(name = "font_color")
|
|
|
+ private String fontColor;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 相对字体颜色
|
|
|
+ */
|
|
|
+ @Column(name = "reserve_color")
|
|
|
+ private String reserveColor;
|
|
|
+
|
|
|
+ public Long getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(Long id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getAppId() {
|
|
|
+ return appId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAppId(String appId) {
|
|
|
+ this.appId = appId;
|
|
|
+ }
|
|
|
+
|
|
|
+ @JsonIgnore
|
|
|
+ @JSONField(serialize = false)
|
|
|
+ public App getApp() {
|
|
|
+ return app;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setApp(App app) {
|
|
|
+ this.app = app;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getDesc() {
|
|
|
+ return desc;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDesc(String desc) {
|
|
|
+ this.desc = desc;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getLogoUrl() {
|
|
|
+ return logoUrl;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setLogoUrl(String logoUrl) {
|
|
|
+ this.logoUrl = logoUrl;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getBgUrl() {
|
|
|
+ return bgUrl;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setBgUrl(String bgUrl) {
|
|
|
+ this.bgUrl = bgUrl;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getBgColor() {
|
|
|
+ return bgColor;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setBgColor(String bgColor) {
|
|
|
+ this.bgColor = bgColor;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getBgLink() {
|
|
|
+ return bgLink;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setBgLink(String bgLink) {
|
|
|
+ this.bgLink = bgLink;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getTitle() {
|
|
|
+ return title;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTitle(String title) {
|
|
|
+ this.title = title;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getSubtitle() {
|
|
|
+ return subtitle;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSubtitle(String subtitle) {
|
|
|
+ this.subtitle = subtitle;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getBtns() {
|
|
|
+ return btns;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setBtns(String btns) {
|
|
|
+ this.btns = btns;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getFontColor() {
|
|
|
+ return fontColor;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setFontColor(String fontColor) {
|
|
|
+ this.fontColor = fontColor;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getReserveColor() {
|
|
|
+ return reserveColor;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setReserveColor(String reserveColor) {
|
|
|
+ this.reserveColor = reserveColor;
|
|
|
+ }
|
|
|
+}
|