Showing
6 changed files
with
236 additions
and
0 deletions
1 | +package com.yoho.datasync.core.base.model.yh_grass; | ||
2 | + | ||
3 | +import com.yoho.datasync.core.base.annotation.ClassTransfer; | ||
4 | +import com.yoho.datasync.core.base.annotation.FieldTransfer; | ||
5 | +import com.yoho.datasync.core.base.model.yh_pcms.PublicLabel; | ||
6 | +import lombok.Data; | ||
7 | + | ||
8 | +@Data | ||
9 | +@ClassTransfer(targetClass = PublicLabel.class) | ||
10 | +public class GrassLabel { | ||
11 | + | ||
12 | + @FieldTransfer(targetFieldName = "relateId") | ||
13 | + private Integer id; | ||
14 | + | ||
15 | + @FieldTransfer | ||
16 | + private String labelName; | ||
17 | + | ||
18 | + @FieldTransfer | ||
19 | + private Integer groupId; | ||
20 | + | ||
21 | + private Integer status; | ||
22 | + | ||
23 | + private Integer visibleStatus; | ||
24 | + | ||
25 | + @FieldTransfer | ||
26 | + private Integer createTime; | ||
27 | + | ||
28 | + @FieldTransfer | ||
29 | + private Integer updateTime; | ||
30 | + | ||
31 | +} |
1 | +package com.yoho.datasync.core.base.model.yh_grass; | ||
2 | + | ||
3 | +import com.yoho.datasync.core.base.annotation.ClassTransfer; | ||
4 | +import com.yoho.datasync.core.base.annotation.FieldTransfer; | ||
5 | +import com.yoho.datasync.core.base.model.yh_pcms.PublicUserHomepage; | ||
6 | +import lombok.Data; | ||
7 | + | ||
8 | +@Data | ||
9 | +@ClassTransfer(targetClass = PublicUserHomepage.class) | ||
10 | +public class GrassUserAchieve { | ||
11 | + | ||
12 | + private Integer id; | ||
13 | + | ||
14 | + @FieldTransfer | ||
15 | + private Integer uid; | ||
16 | + | ||
17 | + @FieldTransfer(targetFieldName = "attenCount") | ||
18 | + private Integer attCount; | ||
19 | + | ||
20 | + @FieldTransfer | ||
21 | + private Integer fansCount; | ||
22 | + | ||
23 | + @FieldTransfer | ||
24 | + private Integer praiseAmount; | ||
25 | + | ||
26 | + @FieldTransfer | ||
27 | + private Integer favoriteAmount; | ||
28 | + | ||
29 | + @FieldTransfer | ||
30 | + private String signature; | ||
31 | + | ||
32 | + @FieldTransfer | ||
33 | + private Integer createTime; | ||
34 | + | ||
35 | + @FieldTransfer | ||
36 | + private Integer updateTime; | ||
37 | + | ||
38 | + @FieldTransfer | ||
39 | + private Integer userType; | ||
40 | + | ||
41 | + @FieldTransfer | ||
42 | + private Integer isForbidden; | ||
43 | + | ||
44 | + private Integer initFlag; | ||
45 | + | ||
46 | + @FieldTransfer | ||
47 | + private Integer authorId; | ||
48 | + | ||
49 | +} |
1 | +package com.yoho.datasync.core.base.model.yh_grass; | ||
2 | + | ||
3 | +import com.yoho.datasync.core.base.annotation.ClassTransfer; | ||
4 | +import com.yoho.datasync.core.base.annotation.FieldTransfer; | ||
5 | +import com.yoho.datasync.core.base.model.yh_pcms.PublicVirtualUser; | ||
6 | +import lombok.Data; | ||
7 | + | ||
8 | +@Data | ||
9 | +@ClassTransfer(targetClass = PublicVirtualUser.class) | ||
10 | +public class GrassVirtualUser { | ||
11 | + | ||
12 | + private Integer id; | ||
13 | + | ||
14 | + @FieldTransfer | ||
15 | + private Integer uid; | ||
16 | + | ||
17 | + @FieldTransfer | ||
18 | + private Integer status; | ||
19 | + | ||
20 | + @FieldTransfer | ||
21 | + private Integer createTime; | ||
22 | + | ||
23 | + @FieldTransfer | ||
24 | + private Integer updateTime; | ||
25 | + | ||
26 | +} |
1 | +package com.yoho.datasync.core.base.model.yh_pcms; | ||
2 | + | ||
3 | + | ||
4 | +import com.yoho.datasync.core.base.model.yh_pcms.base.BaseEntity; | ||
5 | +import lombok.Data; | ||
6 | +import lombok.EqualsAndHashCode; | ||
7 | + | ||
8 | +import javax.persistence.Column; | ||
9 | +import javax.persistence.Entity; | ||
10 | +import javax.persistence.Table; | ||
11 | +import java.io.Serializable; | ||
12 | + | ||
13 | +@Data | ||
14 | +@Entity | ||
15 | +@Table(name = "public_label") | ||
16 | +@EqualsAndHashCode(callSuper = true) | ||
17 | +public class PublicLabel extends BaseEntity implements Serializable { | ||
18 | + | ||
19 | + @Column(name = "label_name") | ||
20 | + private String labelName; | ||
21 | + | ||
22 | + @Column(name = "group_id") | ||
23 | + private Integer groupId; | ||
24 | + | ||
25 | + private Integer status; | ||
26 | + | ||
27 | + @Column(name = "relate_id") | ||
28 | + private Integer relateId; | ||
29 | + | ||
30 | + @Column(name = "is_visible") | ||
31 | + private Integer isVisible; | ||
32 | + | ||
33 | + @Column(name = "src_channel") | ||
34 | + private Integer srcChannel; | ||
35 | + | ||
36 | + @Column(name = "create_time") | ||
37 | + private Long createTime; | ||
38 | + | ||
39 | + @Column(name = "update_time") | ||
40 | + private Long updateTime; | ||
41 | + | ||
42 | +} |
1 | +package com.yoho.datasync.core.base.model.yh_pcms; | ||
2 | + | ||
3 | + | ||
4 | +import com.yoho.datasync.core.base.model.yh_pcms.base.BaseEntity; | ||
5 | +import lombok.Data; | ||
6 | +import lombok.EqualsAndHashCode; | ||
7 | + | ||
8 | +import javax.persistence.Column; | ||
9 | +import javax.persistence.Entity; | ||
10 | +import javax.persistence.Table; | ||
11 | +import java.io.Serializable; | ||
12 | + | ||
13 | +@Data | ||
14 | +@Entity | ||
15 | +@Table(name = "public_user_homepage") | ||
16 | +@EqualsAndHashCode(callSuper = true) | ||
17 | +public class PublicUserHomepage extends BaseEntity implements Serializable { | ||
18 | + | ||
19 | + private Integer uid; | ||
20 | + | ||
21 | + @Column(name = "atten_count") | ||
22 | + private Integer attenCount; | ||
23 | + | ||
24 | + @Column(name = "fans_count") | ||
25 | + private Integer fansCount; | ||
26 | + | ||
27 | + @Column(name = "praise_amount") | ||
28 | + private Integer praiseAmount; | ||
29 | + | ||
30 | + @Column(name = "favorite_amount") | ||
31 | + private Integer favoriteAmount; | ||
32 | + | ||
33 | + private String signature; | ||
34 | + | ||
35 | + @Column(name = "user_type") | ||
36 | + private Integer userType; | ||
37 | + | ||
38 | + @Column(name = "author_id") | ||
39 | + private Integer authorId; | ||
40 | + | ||
41 | + @Column(name = "is_forbidden") | ||
42 | + private Integer isForbidden; | ||
43 | + | ||
44 | + @Column(name = "src_channel") | ||
45 | + private Integer srcChannel; | ||
46 | + | ||
47 | + @Column(name = "create_time") | ||
48 | + private Long createTime; | ||
49 | + | ||
50 | + @Column(name = "update_time") | ||
51 | + private Long updateTime; | ||
52 | + | ||
53 | +} |
1 | +package com.yoho.datasync.core.base.model.yh_pcms; | ||
2 | + | ||
3 | + | ||
4 | +import com.yoho.datasync.core.base.model.yh_pcms.base.BaseEntity; | ||
5 | +import lombok.Data; | ||
6 | +import lombok.EqualsAndHashCode; | ||
7 | + | ||
8 | +import javax.persistence.Column; | ||
9 | +import javax.persistence.Entity; | ||
10 | +import javax.persistence.Table; | ||
11 | +import java.io.Serializable; | ||
12 | + | ||
13 | +@Data | ||
14 | +@Entity | ||
15 | +@Table(name = "public_virtual_user") | ||
16 | +@EqualsAndHashCode(callSuper = true) | ||
17 | +public class PublicVirtualUser extends BaseEntity implements Serializable { | ||
18 | + | ||
19 | + private Integer uid; | ||
20 | + | ||
21 | + @Column(name = "user_type") | ||
22 | + private Integer userType; | ||
23 | + | ||
24 | + @Column(name = "src_channel") | ||
25 | + private Integer srcChannel; | ||
26 | + | ||
27 | + private Integer status; | ||
28 | + | ||
29 | + @Column(name = "create_time") | ||
30 | + private Integer createTime; | ||
31 | + | ||
32 | + @Column(name = "update_time") | ||
33 | + private Integer updateTime; | ||
34 | + | ||
35 | +} |
-
Please register or login to post a comment