package org.jeecg.modules.api.studytourController;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.api.bean.PageBean;
import org.jeecg.modules.studytourPartner.entity.StudytourPartner;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;

@Api(tags="合伙人-相关接口")
@RestController
@RequestMapping("/studytour/partner")
@Slf4j
public class PartnerController {

    @ApiOperation(value="合伙人-申请成为合伙人", notes="合伙人-申请成为合伙人")
    @RequestMapping(value = "/applyPartner", method = {RequestMethod.POST})
    public Result<?> applyPartner(@RequestHeader("X-Access-Token") String token, StudytourPartner studytourPartner){
        return Result.OK("接口暂未处理");
    }

    @ApiOperation(value="我的团队-获取直推用户列表", notes="我的团队-获取直推用户列表")
    @RequestMapping(value = "/queryDirectList", method = {RequestMethod.GET})
    public Result<?> queryDirectList(@RequestHeader("X-Access-Token") String token, PageBean pageBean){
        return Result.OK("接口暂未处理");
    }

    @ApiOperation(value="我的团队-获取间推用户列表", notes="我的团队-获取间推用户列表")
    @RequestMapping(value = "/queryIndirectList", method = {RequestMethod.GET})
    public Result<?> queryIndirectList(@RequestHeader("X-Access-Token") String token, PageBean pageBean){
        return Result.OK("接口暂未处理");
    }

    @ApiOperation(value="合伙人-邀请二维码", notes="合伙人-邀请二维码")
    @RequestMapping(value = "/getInviteCode", method = {RequestMethod.POST})
    public Result<?> getInviteCode(String path){
        return Result.OK("接口暂未处理");
    }

    @ApiOperation(value="合伙人-提现", notes="合伙人-提现")
    @RequestMapping(value = "/cashout", method = {RequestMethod.POST})
    public Result<?> cashout(@RequestHeader("X-Access-Token") String token, String userName, BigDecimal transferAmount){
        return Result.OK("接口暂未处理");
    }

}
