class SeatTokenGenerate extends AbstractTokenGenerate<Seat> {
    @Autowired
    private TokenUtil tokenUtil;

    @Override
    public Token createToken(Seat seat, Boolean longTerm) {<FILL_FUNCTION_BODY>}

    @Override
    public Token refreshToken(String refreshToken) {
        return tokenUtil.refreshToken(refreshToken);
    }

}

        AuthUser authUser = AuthUser.builder()
                .username(seat.getUsername())
                .id(seat.getId())
                .nickName(seat.getNickName())
                .face(seat.getFace())
                .role(UserEnums.SEAT)
                .longTerm(longTerm)
                .tenantId(seat.getTenantId())
                .build();

        //登陆成功生成token
        return tokenUtil.createToken(authUser);
    
<methods>public non-sealed void <init>() ,public abstract cn.lili.common.security.token.Token createToken(cn.lili.modules.im.entity.dos.Seat, java.lang.Boolean) ,public abstract cn.lili.common.security.token.Token refreshToken(java.lang.String) <variables>public cn.lili.common.security.enums.UserEnums role