Skip to content

Commit

Permalink
fix: change userId in controllers to uid
Browse files Browse the repository at this point in the history
  • Loading branch information
DirectorJerrian committed Jan 26, 2022
1 parent 1555286 commit 1aa968d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public List<Prize> findByUserId(@RequestAttribute int uid) {

/**
* 新增奖项
* @param userId
* @param uid
* @param prizeVO
*/
@PutMapping("/prize")
public void addNewPrize(@RequestAttribute int userId, @RequestBody PrizeVO prizeVO){
prizeService.addNewPrize(userId,prizeVO);
public void addNewPrize(@RequestAttribute int uid, @RequestBody PrizeVO prizeVO){
prizeService.addNewPrize(uid,prizeVO);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public List<Property> findByUserId(@RequestAttribute int uid) {

/**
* 新增固定资产
* @param userId
* @param uid
* @param propertyVO
*/
@PutMapping("/property")
public void addNewProperty(@RequestAttribute int userId, @RequestBody PropertyVO propertyVO){
propertyService.addNewProperty(userId,propertyVO);
public void addNewProperty(@RequestAttribute int uid, @RequestBody PropertyVO propertyVO){
propertyService.addNewProperty(uid,propertyVO);
}

/**
Expand Down

0 comments on commit 1aa968d

Please sign in to comment.