package com.sptg.statistics.api.feigns;

import com.sptg.common.core.beans.ResultBean;
import com.sptg.statistics.api.dto.AppMemberLoginRecordsDto;
import com.sptg.statistics.api.entity.AppMemberLoginRecords;
import com.sptg.statistics.api.feigns.fallback.AppMemberLoginRecordsFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * title: AppMemberLoginRecordsFeign
 * package: com.sptg.statistics.api.feigns
 * description:会员登录记录-服务接口
 *
 *                
 *                
 */
@FeignClient(value = "smart-house-statistics",fallbackFactory = AppMemberLoginRecordsFeignFallbackFactory.class)
public interface AppMemberLoginRecordsFeign {

    /**
     * 功能描述:添加会员登录记录
     * @param appMemberLoginRecords
     * @return ResultBean<Boolean>
     *                
     *                      
     */
    @PostMapping(value = "/statistics/appMemberLoginRecords/addAppMemberLoginRecords")
    ResultBean<Boolean> addAppMemberLoginRecords(@RequestBody AppMemberLoginRecords appMemberLoginRecords);

    /**
     * 功能描述:统计用户活跃
     * @param appMemberLoginRecordsDto
     * @return ResultBean<List<Map<String,Object>>>
     *             
     *                      
     */
    @PostMapping(value = "/statistics/appMemberLoginRecords/getMemberLoginCountList")
    ResultBean<List<Map<String,Object>>> getMemberLoginCountList(@RequestBody AppMemberLoginRecordsDto appMemberLoginRecordsDto);
}
