Limited the getUsers API call to just the data we really need.

このコミットが含まれているのは:
テクニカル諏訪子 2018-02-10 08:36:45 +09:00
コミット bf3a7afacf
1個のファイルの変更12行の追加2行の削除

ファイルの表示

@ -15,11 +15,21 @@ class UserController extends Controller {
// User
public function getUsers() { // /api/rpc/user/user/getusers
return DB::table('users')
->select('*')
->join('usr_details', 'usr_details.user_id', '=', 'users.id')
->join('usr_profile', 'usr_profile.user_id', '=', 'users.id')
->join('usr_perm_id', 'usr_perm_id.user_id', '=', 'users.id')
->get();
->get(array(
"id",
"username",
"email",
"reg_date",
"gender",
"ip_address",
"avatar",
"name_style",
"display_name",
"country"
));
}
public function getUser($id) { // /api/rpc/user/user/getuser/id