package com.mortals.xhx.module.device.service;
import com.mortals.framework.model.Context;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.device.model.DeviceEntity;
import com.mortals.xhx.module.device.dao.DeviceDao;
/**
* DeviceService
*
* 设备管理 service接口
*
* @author zxfei
* @date 2023-05-22
*/
public interface DeviceService extends ICRUDService<DeviceEntity,Long>{

    DeviceDao getDao();


    /**
     * 设备激活
     * @param deviceCode
     * @param context
     */
    void active(String deviceCode,Context context);

    /**
     * 设备启用停用
     * @param id
     * @param context
     */
    void deviceEnabled(Long id, Integer status, Context context);
}