• This project
    • Loading...
  • Sign in

fe / yohobuywap-node · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yohobuywap-node
  • apps
  • service
  • models
  • user.js
  • 'global-ctx'
    ce0efa55
    by 郝肖肖
    2018-05-16 11:07:02 +0800  
    Browse Directory »
user.js 315 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
'use strict';

class UserModel extends global.yoho.BaseModel {
    constructor(ctx) {
        super(ctx);
    }

    profile(uid) {
        return this.get({
            data: {
                uid: uid,
                method: 'app.passport.profile'
            }
        });
    }
}

module.exports = UserModel;