package com.xcong.excoin.modules.documentary.controller; import java.util.Map; import javax.validation.Valid; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.xcong.excoin.common.annotation.ControllerEndpoint; import com.xcong.excoin.common.controller.BaseController; import com.xcong.excoin.common.entity.FebsResponse; import com.xcong.excoin.common.entity.QueryRequest; import com.xcong.excoin.modules.documentary.entity.FollowTraderInfoEntity; import com.xcong.excoin.modules.documentary.service.DocumentaryService; import com.xcong.excoin.modules.member.dto.MemberDetailConfirmDto; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @Slf4j @Validated @RestController @RequiredArgsConstructor @RequestMapping(value = "/documentary") public class DocumentaryController extends BaseController { private final DocumentaryService documentaryService; /** * 交易员申请---列表 * @return */ @GetMapping("traderList") public FebsResponse traderList(FollowTraderInfoEntity followTraderInfoEntity, QueryRequest request) { Map data = getDataTable(documentaryService.findTraderListInPage(followTraderInfoEntity, request)); return new FebsResponse().success().data(data); } /** * 交易员申请---确认 * @return */ @PostMapping("traderConfirm") @ControllerEndpoint(operation = "交易员申请---确认", exceptionMessage = "认证失败") public FebsResponse traderConfirm(@Valid FollowTraderInfoEntity followTraderInfoEntity) { return documentaryService.traderConfirm(followTraderInfoEntity); } }