Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

profile img upt for android #59

Merged
merged 1 commit into from
Jun 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.impoort.impoortapi.api.v1.model.requestmodel;

import lombok.Data;

@Data
public class ProfileImgRequestDto {

private String profileImg;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.impoort.impoortapi.controller;

import com.impoort.impoortapi.api.v1.model.requestmodel.ProfileImgRequestDto;
import com.impoort.impoortapi.api.v1.model.requestmodel.UserRequestDTO;
import com.impoort.impoortapi.api.v1.model.requestmodel.UserUpdateDto;
import com.impoort.impoortapi.api.v1.model.responsemodel.UserResponseDTO;
Expand Down Expand Up @@ -70,6 +71,17 @@ public ResponseEntity<String> updateProfileImg(@RequestParam(value = "userId", r

return new ResponseEntity<>("profile image updated successfully",HttpStatus.CREATED);
}
@ApiOperation(value = "kullanıcı fotoğrafı eklemek ve güncellemek için Sadece Android için")
@CrossOrigin
@PostMapping("/updateProfileImgAndroid")
public ResponseEntity<String> updateProfileImgForAndroid(@RequestParam(value = "userId", required = true) String userId,
@RequestBody ProfileImgRequestDto profileImgRequestDto){
this.userService.updateUserProfileImg(userId,profileImgRequestDto.getProfileImg());

return new ResponseEntity<>("profile image updated successfully",HttpStatus.CREATED);
}



/*
@GetMapping("/verifyAccount/url/{activeGuide}")
Expand Down