package com.xiaopeng.operation.controller; import com.xiaopeng.common.core.domain.R; import com.xiaopeng.operation.service.IXpOfficialPartnerService; import com.xiaopeng.operation.vo.OfficialPartnerVo; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; /** * 引流接口 */ @RestController @RequestMapping("/drainage") public class XpOfficialPartnerController { @Resource private IXpOfficialPartnerService xpOfficialPartnerService; /** * 保存合作商信息 * @param vo * @return */ @PostMapping("/v1/officialPartner/save") @ApiOperation(value = "保存合作商信息", notes = "流量接入-基础信息") @ApiImplicitParams({ @ApiImplicitParam(value = "token", name = "token", required = true, paramType = "header") }) public R save(@RequestBody OfficialPartnerVo vo) { xpOfficialPartnerService.addOfficialPartner(vo); return R.ok(); } }