12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- package com.sinosoft.cm.vo;
- import com.sinosoft.cm.common.JSONString;
- public class Result extends JSONString{
- public static final String STATE_SUCCESS="SUCCESS";
- public static final String STATE_FAILURE="FAILURE";
-
- private String rows;
- private String state;//操作状态;state:1.成功:SUCCESS;2.失败:FAILURE
- private int page;//
- private int total;//查询结果总数
-
- public Result(String rows,String state,int page,int total){
- this.rows=rows;
- this.state=state;
- this.page=page;
- this.total=total;
- }
- public Result() {
- }
- public String getRows() {
- return rows;
- }
- public void setRows(String rows) {
- this.rows = rows;
- }
- public String getState() {
- return state;
- }
- public void setState(String state) {
- this.state = state;
- }
- public int getPage() {
- return page;
- }
- public void setPage(int page) {
- this.page = page;
- }
- public int getTotal() {
- return total;
- }
- public void setTotal(int total) {
- this.total = total;
- }
- public static String getStateSuccess() {
- return STATE_SUCCESS;
- }
- public static String getStateFailure() {
- return STATE_FAILURE;
- }
- @Override
- public String toString() {
- return "Result [rows=" + rows + ", state=" + state + ", page=" + page
- + ", total=" + total + "]";
- }
-
-
-
-
- }
|