package com.sonic.lion.controller.web;

import com.sonic.common.auth.domains.Session;
import com.sonic.common.rpc.Result;
import com.sonic.lion.domain.input.CreateSubscribeCheckSessionInput;
import com.sonic.lion.domain.input.UploadReceiptInput;
import com.sonic.lion.domain.output.CreateSubscribeCheckoutSessionOutput;
import com.sonic.lion.domain.output.MemberDetailOutput;
import com.sonic.lion.domain.req.UploadReceiptReq;
import com.sonic.lion.service.MemberService;
import com.sonic.lion.service.ReceiptHandlerService;
import com.sonic.lion.service.StripeSubscribeService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用户会员
 *
 * @author: mzc
 * @date: 2025/09/16
 * @Description:
 * @version: 1.0.0
 */
@Slf4j
@RestController
public class MemberController {

    @Autowired
    private MemberService memberService;

    @ApiOperation(value = "会员详情", tags = "会员")
    @PostMapping("/web/member/detail")
    public Result<MemberDetailOutput> memberDetail(@ApiParam(hidden = true) Session session) {
        return Result.success(memberService.memberDetail(session.getUserId()));
    }


}
