Commit a1bce805 by TingSong-Syu

rpc wrapper

parents
composer.phar
/vendor/
composer.lock
.idea
app.log
# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
{
"name": "neoteched/rpc",
"description": "Neoteched RPC wrappers",
"type": "library",
"license": "BSD",
"authors": [
{
"name": "TingSong-Syu",
"email": "rek@rek.me"
}
],
"require": {
"x2ts/x2ts-rpc": "^2.0"
},
"autoload": {
"psr-4": {
"neoteched\\rpc\\": "src"
}
}
}
<?php
/**
* Created by IntelliJ IDEA.
* User: rek
* Date: 2016/6/17
* Time: 下午2:37
*/
namespace neoteched\rpc;
use x2ts\rpc\RPCWrapper;
/**
* Class Jumper
*
* @package lib\rpc
* @method int create(string $url, string $appName = 'default', string $title = null):int
* @method bool update(int $id, string $url, string $title = null):bool
* @method bool remove(int $id):bool
*/
class Jumper extends RPCWrapper {
}
<?php
/**
* Created by IntelliJ IDEA.
* User: rek
* Date: 2016/8/30
* Time: 下午9:15
*/
namespace neoteched\rpc;
use x2ts\rpc\RPCWrapper;
/** @noinspection MoreThanThreeArgumentsInspection
* Class UserCenter
*
* @package lib\rpc
* @method array register()
* @method array loginByMobileAndVerify(string $mobile, string $token, int $ttl = 86400, string $platform = 'pc')
* @method array logout(string $ssid)
* @method array isHaveRegister(string $mobile)
* @method array getUserFromCondition(string $conditon)
* @method array loginByMobileAndPassword(string $mobile, string $password, int $ttl = 86400, string $platform = 'pc')
* @method array forget(string $token, string $password)
* @method array kickUser($mobile, $platform, $sessionId)
* @method array getUserFromSessionId(string $sessionId)
* @method array updateUserForBackend(array $userProperties)
* @method array/mixed/string updateUser(string $sessionId, array $userProperties)
* @method array|mixed|string updatePassword(string $sessionId, array $passwords = ['original' => '', 'new' => ''])
* @method array|mixed|string bindWx(string $sessionId, array $wxInfo)
* @method array unbindWx(array $wxInfo)
* @method array getUserConstants()
* @method array createUser(array $userProperties)
* @method array createUserForBackend(array $userProperties)
* @method array autoLoginByUserId(int $userid, int $ttl = 86400, string $platform = 'pc')
* @method array getWxUrlForInfo($callback, $infourl)
* @method array getFromCallId($callId)
* @method array wxGetUserInfoByCode(string $code, $appid = '', $secret = '')
* @method string getCallId($platform, $callBack, $ttl)
* @method string getKey()
* @method void run()
* @method void updateSummerHill($arr)
* @method array updateUser(string $sessionId, array $userProperties)
* @method array getWxAuthUrl(string $platform, string $callBack, int $ttl, string $state = '0')
* @method array getAuthUrl(string $platform, string $callBack, int $ttl)
* @method array send(string $mobile)
* @method array verify(string $mobile, int $code)
*
*/
class UserCenter extends RPCWrapper {
}
<?php
/**
* Created by IntelliJ IDEA.
* User: rek
* Date: 2016/8/25
* Time: 下午6:15
*/
namespace neoteched\rpc;
use x2ts\rpc\RPCWrapper;
/**
* Class VideoCenter
*
* @package lib\rpc
* @method array newVideo(string $appName, string $callback_url = null)
* @method array getVideoByName(string $name)
*/
class VideoCenter extends RPCWrapper {
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment