# coding: utf-8

from .request import Request

class UserGetRequest(Request):
    def __init__(self):
        self.fields = None # 查询字段：User数据结构的公开信息字段列表，以半角逗号(,)分隔
        self.nick = None # 用户昵称，多个以半角逗号(,)分隔，最多40个
        self.method = 'taobao.user.get'
        self.p = {}

    def set_nick(self, nick):
        self.fields = nick
        self.p['nick'] = nick

    def set_fields(self, fields):
        self.fields = fields
        self.p['fields'] = fields

class UsersGetRequest(Request):
    def __init__(self):
        self.fields = None # 查询字段：User数据结构的公开信息字段列表，以半角逗号(,)分隔
        self.nicks = None # 用户昵称，多个以半角逗号(,)分隔，最多40个
        self.method = 'taobao.users.get'
        self.p = {}

    def set_nicks(self, nicks):
        self.fields = nicks
        self.p['nicks'] = nicks

    def set_fields(self, fields):
        self.fields = fields
        self.p['fields'] = fields

# coding: utf-8

from .request import Request

class UserGetRequest(Request):
    def __init__(self):
        self.fields = None # 查询字段：User数据结构的公开信息字段列表，以半角逗号(,)分隔
        self.nick = None # 用户昵称，多个以半角逗号(,)分隔，最多40个
        self.method = 'taobao.user.get'
        self.p = {}

    def set_nick(self, nick):
        self.fields = nick
        self.p['nick'] = nick

    def set_fields(self, fields):
        self.fields = fields
        self.p['fields'] = fields

class UsersGetRequest(Request):
    def __init__(self):
        self.fields = None # 查询字段：User数据结构的公开信息字段列表，以半角逗号(,)分隔
        self.nicks = None # 用户昵称，多个以半角逗号(,)分隔，最多40个
        self.method = 'taobao.users.get'
        self.p = {}

    def set_nicks(self, nicks):
        self.fields = nicks
        self.p['nicks'] = nicks

    def set_fields(self, fields):
        self.fields = fields
        self.p['fields'] = fields

# coding: utf-8 # 查询字段：User数据结构的公开信息字段列表，以半角逗号(,)分隔 # 用户昵称，多个以半角逗号(,)分隔，最多40个 # 查询字段：User数据结构的公开信息字段列表，以半角逗号(,)分隔 # 用户昵称，多个以半角逗号(,)分隔，最多40个