package com.hzs.member.achieve.provider;

import com.hzs.common.core.domain.R;
import com.hzs.common.domain.member.achieve.CuMemberSettlePeriod;
import com.hzs.member.achieve.ICuMemberSettlePeriodServiceApi;
import com.hzs.member.achieve.service.ICuMemberSettlePeriodService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 会员结算期间
 * @Author: zhangjing
 * @Time: 2022/10/26 15:14
 * @Classname: MemberAchieveServiceProvider
 * @PackageName: com.hzs.member.achieve.provider
 */
@DubboService
public class CuMemberSettlePeriodServiceProvider implements ICuMemberSettlePeriodServiceApi {

    @Autowired
    private ICuMemberSettlePeriodService iCuMemberSettlePeriodService;

    /**
     * @description: 根据日期获得日期对应的期间
     * @author: zhang jing
     * @date: 2023/8/26 10:25
     * @param: [date]
     * @return: com.hzs.common.core.domain.R<com.hzs.common.domain.member.achieve.CuMemberSettlePeriod>
     **/
    @Override
    public R<CuMemberSettlePeriod> getCuMemberSettlePeriodByDate(String date) {
        return R.ok(iCuMemberSettlePeriodService.getCuMemberSettlePeriodByDate(date));
    }

}
