| | |
| | | import cc.mrbird.febs.dapp.service.DappMemberService; |
| | | import lombok.RequiredArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | // member.setBalance(BigDecimal.valueOf(100)); |
| | | return new FebsResponse().success().data(BigDecimal.valueOf(100)); |
| | | } |
| | | |
| | | @PostMapping(value = "/accountStatus/{id}") |
| | | public FebsResponse accountStatus(@PathVariable("id") Long id) { |
| | | dappMemberService.accountStatus(id); |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | @PostMapping(value = "/changeAble/{id}") |
| | | public FebsResponse changeAble(@PathVariable("id") Long id) { |
| | | dappMemberService.changeAble(id); |
| | | return new FebsResponse().success(); |
| | | } |
| | | |
| | | |
| | | @PostMapping(value = "/withdrawAble/{id}") |
| | | public FebsResponse withdrawAble(@PathVariable("id") Long id) { |
| | | dappMemberService.withdrawAble(id); |
| | | return new FebsResponse().success(); |
| | | } |
| | | } |