|
@@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
@RestController
|
|
@RestController
|
|
@@ -68,7 +69,7 @@ public class MarketingController {
|
|
|
@GetMapping("/dashboard/stats")
|
|
@GetMapping("/dashboard/stats")
|
|
|
@ApiOperation("营销: 仪表盘统计数据")
|
|
@ApiOperation("营销: 仪表盘统计数据")
|
|
|
public Result<Object> dashboardStats() {
|
|
public Result<Object> dashboardStats() {
|
|
|
- return Result.result(new java.util.HashMap<String, Object>() {{
|
|
|
|
|
|
|
+ return Result.result(new HashMap<String, Object>() {{
|
|
|
put("monthlySent", "2.8K");
|
|
put("monthlySent", "2.8K");
|
|
|
put("avgOpenRate", "45%");
|
|
put("avgOpenRate", "45%");
|
|
|
put("clickRate", "12%");
|
|
put("clickRate", "12%");
|
|
@@ -90,4 +91,10 @@ public class MarketingController {
|
|
|
return marketingService.getDetailById(id);
|
|
return marketingService.getDetailById(id);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @PostMapping("/status")
|
|
|
|
|
+ @ApiOperation("营销: 更新营销活动状态")
|
|
|
|
|
+ public Result<?> updateStatus(@RequestParam("id") Long id, @RequestParam("status") Integer status) {
|
|
|
|
|
+ return marketingService.updateStatus(id, status);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|