slim_cli/template/model/user.py
def gen_token(cls):
        """ 生成 access_token """
        token = os.urandom(16)
        token_time = int(time.time())
        return {'token': token, 'token_time': token_time}
def gen_token(cls):
        """ 生成 access_token """
        token = os.urandom(16)
        token_time = int(time.time())
        return {'token': token, 'token_time': token_time}
生成 access_token