| | |
| | | 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; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | Map<String, Object> dataTable = getDataTable(dappMemberService.selectInPage(member, request)); |
| | | return new FebsResponse().success().data(dataTable); |
| | | } |
| | | |
| | | @RequestMapping(value = "/getBalanceByAddress/{address}") |
| | | public FebsResponse getBalanceByAddress(@PathVariable("address") String address) { |
| | | |
| | | // DappMemberEntity member = dappMemberService.findByAddress(address); |
| | | // 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(); |
| | | } |
| | | } |