package com.red.circle.console.infra.config;

import com.red.circle.framework.mybatis.mybatisplus.FillMetaApplication;
import com.red.circle.framework.web.spring.ApplicationRequestUtils;
import org.springframework.stereotype.Component;

/**
 * 通用填充类 适用于mybatis plus.
 *
 * @author pengliang
 */
@Component
public class FillMetaApplicationImpl implements FillMetaApplication {

  @Override
  public Long getUserId() {
    return ApplicationRequestUtils.getReqUserId();
  }

}
