Skip to content

Commit

Permalink
Merge pull request #59 from canadmin/canadmin
Browse files Browse the repository at this point in the history
profile img upt for android
  • Loading branch information
canadmin authored Jun 5, 2020
2 parents 404ac4c + c8f5bda commit 16a6a62
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
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

0 comments on commit 16a6a62

Please sign in to comment.