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.AppStrategyDao;
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_STRATEGY)
public class AppStrategyUserStrategyServiceImpl implements UserStrategyService {

    @Autowired
    private AppStrategyDao appStrategyDao;

    @Override
    public ResponseResult getUserStrategy(Integer equipmentId) {
        return ResponseResult.success(appStrategyDao.listDeviceAppStrategyVO(equipmentId));
    }
}
