Files
wb-java-nc-shop/target/classes/com/nlshop/controller/user/UserController.class

32 lines
7.9 KiB
Plaintext
Raw Normal View History

2026-01-11 18:14:42 +08:00
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>4<00>
 java/lang/Object<init>()V  
)com/nlshop/controller/user/UserController userService%Lcom/nlshop/service/user/UserService;
 #com/nlshop/service/user/UserServiceregisterF(Lcom/nlshop/dto/request/UserRegisterRequest;)Lcom/nlshop/entity/User;
 #com/nlshop/dto/response/ApiResponsesuccess9(Ljava/lang/Object;)Lcom/nlshop/dto/response/ApiResponse;
 #com/nlshop/dto/request/LoginRequest getUsername()Ljava/lang/String;
 ! getPassword
# $%login>(Ljava/lang/String;Ljava/lang/String;)Lcom/nlshop/entity/User; '() *+%javax/servlet/http/HttpServletRequest
getSession#(Z)Ljavax/servlet/http/HttpSession;-userId
/01 23com/nlshop/entity/UsergetId()Ljava/lang/Long; 567 89javax/servlet/http/HttpSession setAttribute'(Ljava/lang/String;Ljava/lang/Object;)V;userType=user?username
/B%com/nlshop/dto/response/LoginResponse
AE
AG HIsetToken(Ljava/lang/String;)V
AK LM setUserId(Ljava/lang/Long;)V
AO PI setUserType
AR SI setUsername
/U VgetName
AX YIsetName 5[ \
invalidate '^ _` getAttribute&(Ljava/lang/String;)Ljava/lang/Object;bjava/lang/Longd 请先登录
f gherror9(Ljava/lang/String;)Lcom/nlshop/dto/response/ApiResponse;
j kl
getProfile*(Ljava/lang/Long;)Lcom/nlshop/entity/User;
n op updateProfileB(Ljava/lang/Long;Lcom/nlshop/entity/User;)Lcom/nlshop/entity/User;r 上传成功
t uv getAddresses"(Ljava/lang/Long;)Ljava/util/List;
x yz
addAddressP(Ljava/lang/Long;Lcom/nlshop/entity/UserAddress;)Lcom/nlshop/entity/UserAddress;
| }~ updateAddress`(Ljava/lang/Long;Ljava/lang/Long;Lcom/nlshop/entity/UserAddress;)Lcom/nlshop/entity/UserAddress;<00>&com/nlshop/exception/BusinessException
<00> <00>
getMessage
<00> <00><00> deleteAddress#(Ljava/lang/Long;Ljava/lang/Long;)VRuntimeVisibleAnnotations8Lorg/springframework/beans/factory/annotation/Autowired;CodeLineNumberTableLocalVariableTablethis+Lcom/nlshop/controller/user/UserController;S(Lcom/nlshop/dto/request/UserRegisterRequest;)Lcom/nlshop/dto/response/ApiResponse;request,Lcom/nlshop/dto/request/UserRegisterRequest;Lcom/nlshop/entity/User;MethodParameters Signaturem(Lcom/nlshop/dto/request/UserRegisterRequest;)Lcom/nlshop/dto/response/ApiResponse<Lcom/nlshop/entity/User;>;5Lorg/springframework/web/bind/annotation/PostMapping;value /register"RuntimeVisibleParameterAnnotations5Lorg/springframework/validation/annotation/Validated;5Lorg/springframework/web/bind/annotation/RequestBody;s(Lcom/nlshop/dto/request/LoginRequest;Ljavax/servlet/http/HttpServletRequest;)Lcom/nlshop/dto/response/ApiResponse;%Lcom/nlshop/dto/request/LoginRequest; httpRequest'Ljavax/servlet/http/HttpServletRequest;session Ljavax/servlet/http/HttpSession;response'Lcom/nlshop/dto/response/LoginResponse;<00>(Lcom/nlshop/dto/request/LoginRequest;Ljavax/servlet/http/HttpServletRequest;)Lcom/nlshop/dto/response/ApiResponse<Lcom/nlshop/dto/response/LoginResponse;>;/loginlogoutN(Ljavax/servlet/http/HttpServletRequest;)Lcom/nlshop/dto/response/ApiResponse; StackMapTable`(Ljavax/servlet/http/HttpServletRequest;)Lcom/nlshop/dto/response/ApiResponse<Ljava/lang/Void;>;/logoutLjava/lang/Long;h(Ljavax/servlet/http/HttpServletRequest;)Lcom/nlshop/dto/response/ApiResponse<Lcom/nlshop/entity/User;>;4Lorg/springframework/web/bind/annotation/GetMapping;/profilef(Lcom/nlshop/entity/User;Ljavax/servlet/http/HttpServletRequest;)Lcom/nlshop/dto/response/ApiResponse;updated<00>(Lcom/nlshop/entity/User;Ljavax/servlet/http/HttpServletRequest;)Lcom/nlshop/dto/response/ApiResponse<Lcom/nlshop/entity/User;>;4Lorg/springframework/web/bind/annotation/PutMapping; uploadAvatar(Lorg/springframework/web/multipart/MultipartFile;Ljavax/servlet/http/HttpServletRequest;)Lcom/nlshop/dto/response/ApiResponse;file1Lorg/springframework/web/multipart/MultipartFile;<00>(Lorg/springframework/web/multipart/MultipartFile;Ljavax/servlet/http/HttpServletRequest;)Lcom/nlshop/dto/response/ApiResponse<Ljava/lang/String;>;/avatar6Lorg/springframework/web/bind/annotation/RequestParam; addressesLjava/util/List;LocalVariableTypeTable1Ljava/util/List<Lcom/nlshop/entity/UserAddress;>;<00>(Ljavax/servlet/http/HttpServletRequest;)Lcom/nlshop/dto/response/ApiResponse<Ljava/util/List<Lcom/nlshop/entity/UserAddress;>;>;/addressm(Lcom/nlshop/entity/UserAddress;Ljavax/servlet/http/HttpServletRequest;)Lcom/nlshop/dto/response/ApiResponse;addressLcom/nlshop/entity/UserAddress;added<00>(Lcom/nlshop/entity/UserAddress;Ljavax/servlet/http/HttpServletRequest;)Lcom/nlshop/dto/response/ApiResponse<Lcom/nlshop/entity/UserAddress;>;}(Ljava/lang/Long;Lcom/nlshop/entity/UserAddress;Ljavax/servlet/http/HttpServletRequest;)Lcom/nlshop/dto/response/ApiResponse;e(Lcom/nlshop/exception/BusinessException;id<00>(Ljava/lang/Long;Lcom/nlshop/entity/UserAddress;Ljavax/servlet/http/HttpServletRequest;)Lcom/nlshop/dto/response/ApiResponse<Lcom/nlshop/entity/UserAddress;>; /address/{id}6Lorg/springframework/web/bind/annotation/PathVariable;^(Ljava/lang/Long;Ljavax/servlet/http/HttpServletRequest;)Lcom/nlshop/dto/response/ApiResponse;p(Ljava/lang/Long;Ljavax/servlet/http/HttpServletRequest;)Lcom/nlshop/dto/response/ApiResponse<Ljava/lang/Void;>;7Lorg/springframework/web/bind/annotation/DeleteMapping;
SourceFileUserController.java8Lorg/springframework/web/bind/annotation/RestController;8Lorg/springframework/web/bind/annotation/RequestMapping;/! <00><00> <00>/*<2A><01><00><00> <00><00><00><00>P*<2A>+<2B> M,<2C><13><00>
 <00> <00><00><00><00> =<00><00><00><00><00><00><00><00>[s<00><00> <00><00>$<00><00><00>v*<2A>+<2B>+<2B><1F>"N,<04>&:,-<2D>.<2E>4:<<3C>4>-<2D>@<40>4<00>AY<41>C:D<>F-<2D>.<2E>J<<3C>N-<2D>@<40>Q-<2D>T<>W<05><13><00>2 $'(&)1*>,G-N.W/^0g1p3<00>>v<00><00>v<00><00>v<00><00>f=<00>]<00><00>G/<00><00><00> <00><00><00><00><00><00><00>[s<00><00> <00><00><00><00><00>o+<03>&M,<2C> ,<2C>Z<01><13><00>89 :<<00> <00><00><00><00><00><00><00><01>5<00><00><00><00><00><00><00>[s<00>k<00><00><00>$+,<2C>]<00>aM,<2C> c<>e<>*<2A>,<2C>iN-<2D><13><00>A BCEF<00>*$<00><00>$<00><00> -<00>=<00><00><01>a<00><00><00><00><00><00><00>[s<00>o<00><00><00>',,<2C>]<00>aN-<2D> c<>e<>*<2A>-+<2B>m:<04><13><00>K LMO!P<00>4'<00><00>'=<00>'<00><00> -<00>!<00><00><00><01>a<00> =<00><00><00><00><00><00>[s<00><00> <00><00><00><00>~,,<2C>]<00>aN-<2D> c<>e<>q<><13><00>V WX[<00>*<00><00><00><00><00><00> -<00><00><01>a<00> <00><00><00><00><00><00><00>[s<00><00><00><00>s<00>u<00><00><00>$+,<2C>]<00>aM,<2C> c<>e<>*<2A>,<2C>sN-<2D><13><00>` abde<00>*$<00><00>$<00><00> -<00><00><00><00> <00><00><00><01>a<00><00><00><00><00><00><00>[s<00>y<00><00><00>',,<2C>]<00>aN-<2D> c<>e<>*<2A>-+<2B>w:<04><13><00>k lmo!p<00>4'<00><00>'<00><00>'<00><00> -<00>!<00><00><00><01>a<00> <00><00><00><00><00><00><00>[s<00><00> <00>}<00><00><00>6-,<2C>]<00>a:<04> c<>e<>*<2A>+,<2C>{:<05><13>:<05><00><>e<>*+<00>w xy|%}+~-<00>H%<00><00>- <00><00>6<00><00>6<00><00>6<00><00>6<00><00> )-<00><00> <02>aR<00> <00><00><00><00><00><00><00><00>[s<00><00><00><00><00><00><00><00>/,,<2C>]<00>aN-<2D> c<>e<>*<2A>-+<2B><00><01><13>:<04><00><>e<>#$<00><00> <00><00><00><00>$<00>&<00><00>4& <00><00>/<00><00>/<00><00>/<00><00> #-<00><00> <02>aM<00> <00><00><00><00><00><00><00>[s<00><00> <00><00><00><00><00><00><00>[s<00>