package com.cm.smartgate.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.cm.smartgate.config.NetManagementConfig;
import com.cm.smartgate.service.AbstractSmartGateOperationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * When you feel like quitting. Think about why you started
 * 当你想要放弃的时候，想想当初你为何开始
 *
 * @ClassName: DoorModeService
 * @Description: 开门模式操作业务
 * @Author: WangGeng
 * @Date: 2020/9/27 16:33
 * @Version: 1.0
 **/
@Service
public class OpenDoorOperationService extends AbstractSmartGateOperationService {

    @Autowired
    private NetManagementConfig netManagementConfig;

    @Override
    protected JSONObject getConfigSetting(int mode) {
        return getOpenDoor();
    }

    @Override
    protected String getConfigPath() {
        return netManagementConfig.getConfigPath();
    }
}
