package com.czg.controller.user;

import com.czg.account.dto.ShopActivateDTO;
import com.czg.account.service.ShopActivateService;
import com.czg.resp.CzgResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 用户店铺充值活动管理
 *
 * @author ww
 */
@RestController
@RequestMapping("/user/activate")
public class UserShopActivateController {
    @Resource
    private ShopActivateService shopActivateService;

    /**
     * 店铺充值活动列表
     */
    @GetMapping
    public CzgResult<List<ShopActivateDTO>> detail(@RequestParam(required = false) Long shopId) {
        return CzgResult.success(shopActivateService.getList(shopId));
    }

}
