| | |
| | | import com.ruoyi.system.api.model.AppMiniLoginVo; |
| | | import com.ruoyi.system.api.service.RemoteShopService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | |
| | | memberService.updateMemberShopName(mgtMemberShopNameDto); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/getBirthdayCard") |
| | | public R<BirthdayCard> getBirthdayCard() |
| | | { |
| | | public R<BirthdayCard> getBirthdayCard() { |
| | | BirthdayCard birthdayCard = birthdayCardService.getBirthdayCard(); |
| | | return R.ok(birthdayCard); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/listUserIdByAgeType") |
| | | public R<List<Long>> listUserIdByAgeType(@RequestBody Integer ageType){ |
| | | public R<List<Long>> listUserIdByAgeType(@RequestBody Integer ageType) { |
| | | List<Long> userIdList = memberService.listUserIdByAgeType(ageType); |
| | | return R.ok(userIdList); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 手动添加用户积分 |
| | | * |
| | | * @param integral |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @PostMapping("/addIntegralRecord") |
| | | public R addIntegralRecord(@RequestParam("integral") Integer integral, @RequestParam("userId") Long userId, @RequestParam("orderId") String orderId) { |
| | | return memberService.addIntegralRecord(integral, userId, orderId); |
| | | } |
| | | } |