返回结果

Result类

 1 package com.yy.core.pojo.entity;
 2 
 3 import java.io.Serializable;
 4 
 5 public class Result implements Serializable {
 6 
 7     private boolean success;
 8 
 9     private String message;
10 
11     public Result() {
12     }
13 
14     public Result(boolean success, String message) {
15         super();
16         this.success = success;
17         this.message = message;
18     }
19 
20     public boolean isSuccess() {
21         return success;
22     }
23 
24     public void setSuccess(boolean success) {
25         this.success = success;
26     }
27 
28     public String getMessage() {
29         return message;
30     }
31 
32     public void setMessage(String message) {
33         this.message = message;
34     }
35 }

 

posted @ 2019-11-19 16:17  lion-one  阅读(171)  评论(0编辑  收藏  举报