package com.sqx.modules.bl.commission.fxy.controller.app;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.sqx.common.utils.Result;
import com.sqx.modules.bl.commission.fxy.entity.FxyApply;
import com.sqx.modules.bl.commission.fxy.entity.FxyConfig;
import com.sqx.modules.bl.commission.fxy.service.FxyApplyService;
import com.sqx.modules.bl.commission.fxy.service.FxyConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
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 java.text.SimpleDateFormat;
import java.util.Date;

@RestController
@RequestMapping("/app/commission/fxy")
@Api(value = "分佣管理", tags = {"分销员管理app"})
public class AppFxyController {

    @Autowired
    private FxyApplyService service;

    @PostMapping("/apply")
    @ApiOperation("申请分销员")
    public Result apply(FxyApply fxyApply){
        service.add(fxyApply);
        return Result.success();
    }
}
