通用日志记录

This commit is contained in:
zhh
2018-04-18 17:25:18 +08:00
parent 8dde877a9f
commit 2d4dc7e0c1
11 changed files with 171 additions and 28 deletions

View File

@@ -1,6 +1,7 @@
package com.macro.mall.dto;
import com.github.pagehelper.PageInfo;
import com.macro.mall.util.JsonUtils;
import org.springframework.validation.BindingResult;
import java.util.HashMap;
@@ -76,6 +77,11 @@ public class CommonResult {
return this;
}
@Override
public String toString() {
return JsonUtils.objectToJson(this);
}
public int getCode() {
return code;
}