package com.pig4cloud.pigx.app.controller.as;

import com.pig4cloud.pigx.app.service.as.AsUserSubService;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.common.security.annotation.Inner;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpHeaders;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * as 用户订阅
 *
 * @author amigo
 * @date 2023-7
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/asUserSub")
@Tag(description = "AS-sub-manage", name = "AS-订阅")
@SecurityRequirement(name = HttpHeaders.AUTHORIZATION)
public class AsUserSubController {

    //init first page ?

    private final AsUserSubService asUserSubService;

    /**
     * 获取订阅人数
     * 根据平台类型查询总订阅人数 、 新增至redis
     */
    @Inner(value = false)
    @Operation(summary = "获取订阅人数", description = "获取订阅人数")
    @GetMapping("/getSubCount")
    public R getSubCount(){
        return R.ok();
    }



}
