package com.learning.auth.activiti;

import org.springframework.stereotype.Component;

@Component
public class UserBean {

    public String getUsername(int id) {
        if (id == 1) {
            return "lilei";
        }
        if (id == 2) {
            return "hanmeimei";
        }

        return "admin";
    }

}
