package com.zcloud.basic.info.event;

import com.jjb.saas.framework.event.consumer.MessageConsumer;
import com.jjb.saas.framework.event.consumer.MsgConsumer;
import com.zcloud.gbscommon.event.department.ZcDepartmentEvent;
import com.zcloud.gbscommon.event.user.ZcUserEvent;
import org.springframework.stereotype.Component;

/**
 * @author lin
 */
@Component
@MsgConsumer(tag = "zcloud:department:name")
public class DepartmentUpdateAuditStatusConsumer implements MessageConsumer<ZcDepartmentEvent> {
//    private RemoteEventPublisher eventPublisher;

//    public UserUpdateAuditStatusConsumer(RemoteEventPublisher eventPublisher) {
//        this.eventPublisher = eventPublisher;
//    }

    @Override
    public void consume(ZcDepartmentEvent event) {

        System.out.println(event.getDepartmentId());
    }


}
