package com.engine.zjrb.pattern.service.impl;

import com.engine.core.impl.Service;
import com.engine.zjrb.pattern.cmd.PatternUnlockingAddCmd;
import com.engine.zjrb.pattern.cmd.PatternUnlockingQueryCmd;
import com.engine.zjrb.pattern.cmd.PatternUnlockingUpdateCmd;
import com.engine.zjrb.pattern.service.PatternUnlockingService;
import weaver.hrm.User;

import java.util.Map;

public class PatternUnlockingServiceImpl extends Service implements PatternUnlockingService {
    @Override
    public Map<String, Object> query(Map<String, Object> params, User user) {
        return commandExecutor.execute(new PatternUnlockingQueryCmd(params,user));
    }

    @Override
    public Map<String, Object> add(Map<String, Object> params, User user) {
        return commandExecutor.execute(new PatternUnlockingAddCmd(params,user));
    }

    @Override
    public Map<String, Object> update(Map<String, Object> params, User user) {
        return commandExecutor.execute(new PatternUnlockingUpdateCmd(params,user));
    }


    @Override
    public Map<String, Object> getrestinfo(Map<String, Object> params, User user) {
        return commandExecutor.execute(new PatternUnlockingUpdateCmd(params,user));
    }
}
