1- package zuo .biao .apijson .client .model ;
1+ /*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)
2+
3+ Licensed under the Apache License, Version 2.0 (the "License");
4+ you may not use this file except in compliance with the License.
5+ You may obtain a copy of the License at
26
3- public class Comment {
7+ http://www.apache.org/licenses/LICENSE-2.0
48
5- long id ;
6- long workId ;
7- long parentId ;
8- long userId ;
9- long targetUserId ;
10- String userName ;
11- String targetUserName ;
12- String content ;
9+ Unless required by applicable law or agreed to in writing, software
10+ distributed under the License is distributed on an "AS IS" BASIS,
11+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ See the License for the specific language governing permissions and
13+ limitations under the License.*/
14+
15+ package zuo .biao .apijson .client .model ;
16+
17+ /**评论类
18+ * @author Lemon
19+ */
20+ public class Comment extends BaseModel {
21+ private static final long serialVersionUID = -1011007127735372824L ;
22+
23+
24+ public Long workId ;
25+ public Long parentId ;
26+ public Long userId ;
27+ public Long targetUserId ;
28+ public String userName ;
29+ public String targetUserName ;
30+ public String content ;
1331 public Comment () {
14- // TODO Auto-generated constructor stub
32+ super ();
1533 }
16- public Comment (long id , String content ) {
34+ public Comment (Long id , String content ) {
1735 this ();
1836 this .id = id ;
1937 this .content = content ;
2038 }
21- public long getId () {
22- return id ;
23- }
24- public void setId (long id ) {
25- this .id = id ;
26- }
27- public long getWorkId () {
39+
40+ public Long getWorkId () {
2841 return workId ;
2942 }
30- public void setWorkId (long workId ) {
43+ public void setWorkId (Long workId ) {
3144 this .workId = workId ;
3245 }
33- public long getParentId () {
46+ public Long getParentId () {
3447 return parentId ;
3548 }
36- public void setParentId (long parentId ) {
49+ public void setParentId (Long parentId ) {
3750 this .parentId = parentId ;
3851 }
39- public long getUserId () {
52+ public Long getUserId () {
4053 return userId ;
4154 }
42- public void setUserId (long userId ) {
55+ public void setUserId (Long userId ) {
4356 this .userId = userId ;
4457 }
45- public long getTargetUserId () {
58+ public Long getTargetUserId () {
4659 return targetUserId ;
4760 }
48- public void setTargetUserId (long targetUserId ) {
61+ public void setTargetUserId (Long targetUserId ) {
4962 this .targetUserId = targetUserId ;
5063 }
5164 public String getUserName () {
@@ -68,6 +81,4 @@ public void setContent(String content) {
6881 }
6982
7083
71-
72-
7384}
0 commit comments