package com.skr.mdm.api.equipment.service.impl;

import com.skr.mdm.api.equipment.annotation.UserStrategy;
import com.skr.mdm.api.equipment.service.UserStrategyService;
import com.skr.mdm.dao.MdmAppPushDao;
import com.skr.mdm.enums.UserStrategyEnum;
import com.skr.mdm.result.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author nfq
 * @date 2023-02-02 16:23
 */
@UserStrategy(strategyType = UserStrategyEnum.APP_PUSH)
public class ApPushUserStrategyServiceImpl implements UserStrategyService {

    @Autowired
    private MdmAppPushDao appPushDao;

    @Override
    public ResponseResult getUserStrategy(Integer equipmentId) {
        return ResponseResult.success(appPushDao.listDeviceAppPushVO(equipmentId));
    }
}
