|
@@ -1,6 +1,5 @@
|
|
|
package com.ruixuan.isc.controller;
|
|
|
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
import com.ruixuan.common.core.controller.BaseController;
|
|
|
import com.ruixuan.common.core.domain.AjaxResult;
|
|
|
import com.ruixuan.common.core.page.TableDataInfo;
|
|
@@ -10,9 +9,7 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -60,13 +57,22 @@ public class KuaishouPromoterController extends BaseController {
|
|
|
* 获取快手达人信息
|
|
|
*/
|
|
|
@GetMapping(value = "/getPromoterInfo")
|
|
|
- @ApiOperation(value = "获取快手达人信息")
|
|
|
+ @ApiOperation(value = "获取快手达人短视频信息")
|
|
|
public AjaxResult getPromoterInfo(@ApiParam("达人ID") @RequestParam(value = "promoterId", required = true) Long promoterId) {
|
|
|
return kuaishouPromoterService.getPromoterInfo(promoterId);
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
+ * 获取快手达人信息
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/getOnlyPromoterInfo")
|
|
|
+ @ApiOperation(value = "只获取达人信息")
|
|
|
+ public AjaxResult getOnlyPromoterInfo(@ApiParam("达人ID") @RequestParam(value = "promoterId", required = true) Long promoterId) {
|
|
|
+ return AjaxResult.success(kuaishouPromoterService.getOnlyPromoterInfo(promoterId));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 新增快手达人 信息
|
|
|
*/
|
|
|
@PostMapping(value = "/add")
|
|
@@ -87,9 +93,11 @@ public class KuaishouPromoterController extends BaseController {
|
|
|
/**
|
|
|
* 删除快手达人 信息
|
|
|
*/
|
|
|
- @DeleteMapping("/{ids}")
|
|
|
-// @ApiOperation(value = "删除快手达人")
|
|
|
- public AjaxResult remove(@PathVariable Long[] ids) {
|
|
|
- return toAjax(kuaishouPromoterService.deleteKuaishouPromoterByIds(ids));
|
|
|
+ @GetMapping("/deleteById")
|
|
|
+ @ApiOperation(value = "删除快手达人")
|
|
|
+ public AjaxResult deleteById(@ApiParam("主键") @RequestParam(value = "id", required = true) Long id,
|
|
|
+ @ApiParam("操作人ID") @RequestParam(value = "userId", required = true) Long userId
|
|
|
+ ) {
|
|
|
+ return toAjax(kuaishouPromoterService.deleteKuaishouPromoterById(id, userId));
|
|
|
}
|
|
|
}
|