package com.czg.controller.user;

import com.czg.market.service.MkBirthdayGiftService;
import com.czg.resp.CzgResult;
import com.czg.sa.StpKit;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.Map;

/**
 * 生日有礼相关
 * @author Administrator
 */
@RestController
@RequestMapping("/user/birthdayGift")
public class UBirthdayGiftController {

    @Resource
    private MkBirthdayGiftService service;

    /**
     * 获取生日有礼 不为空则代表今日发放生日有礼的奖励
     */
    @GetMapping
    public CzgResult<ArrayList<Map<String, Object>>> detail(@RequestParam Integer shopId) {
        return CzgResult.success(service.getInfo(StpKit.USER.getLoginIdAsLong(), shopId));
    }



}
