From a6f34b99ee20e528b766c8ed5a61bd9c5aa0e7ae Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 16 十一月 2019 18:10:33 +0800 Subject: [PATCH] 淘宝相似商品推荐接口优化,根据商品ID搜索商品基本信息优化 --- fanli/src/main/java/com/yeshi/fanli/exception/taobao/TaoBaoAuthException.java | 58 +++++++++++++++++++++------------------------------------- 1 files changed, 21 insertions(+), 37 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/exception/taobao/TaoBaoAuthException.java b/fanli/src/main/java/com/yeshi/fanli/exception/taobao/TaoBaoAuthException.java index 8b6d90b..48da6e4 100644 --- a/fanli/src/main/java/com/yeshi/fanli/exception/taobao/TaoBaoAuthException.java +++ b/fanli/src/main/java/com/yeshi/fanli/exception/taobao/TaoBaoAuthException.java @@ -1,37 +1,21 @@ -package com.yeshi.fanli.exception.taobao; - -//娣樺疂鍟嗗搧涓嬫灦 -public class TaoBaoAuthException extends Exception { - public static int CODE_NOT_REAL_NAME = 1;// 鏈疄鍚� - public static int CODE_OUT_OF_RULE = 2;// 杩濊 - public static int CODE_OTHER = 3;// 鍏朵粬閿欒 - - /** - * - */ - private static final long serialVersionUID = 1L; - private int code; - private String msg; - - public int getCode() { - return code; - } - - public String getMsg() { - return msg; - } - - public TaoBaoAuthException(int code, String msg) { - this.code = code; - this.msg = msg; - } - - public TaoBaoAuthException() { - } - - @Override - public String getMessage() { - return this.msg; - } - -} +package com.yeshi.fanli.exception.taobao; + +import com.yeshi.fanli.exception.BaseException; + +//娣樺疂鍟嗗搧涓嬫灦 +public class TaoBaoAuthException extends BaseException { + public static int CODE_NOT_REAL_NAME = 1;// 鏈疄鍚� + public static int CODE_OUT_OF_RULE = 2;// 杩濊 + public static int CODE_OTHER = 3;// 鍏朵粬閿欒 + + + private static final long serialVersionUID = 1L; + + public TaoBaoAuthException(int code, String msg) { + super(code, msg); + } + + public TaoBaoAuthException() { + super(); + } +} -- Gitblit v1.8.0