import path_setting
from in_common.base_request import BaseRequest


class polymerization_request(BaseRequest):
    def __init__(self):
        self.data = self.api_load(path_setting.POLYMERIZATION_REQUEST_CONFIG)

    #品类聚合页-社区/视频列表
    def polymerization_content(self, tabtype, category_polymer_id, page, tag_ids, operation_id, level, version, device_id='8C3EB981-B22D-43E2-B208-34F6036505BB'):
        self.params["tabtype"] = tabtype
        self.params["category_polymer_id"] = category_polymer_id
        self.params["page"] = page
        self.params["tag_ids"] = tag_ids
        self.params["operation_id"] = operation_id
        self.params["level"] = level
        self.params["version"] = version
        return self.api_send(self.data["polymerization_content"])

if __name__ == "__main__":
    # 品类聚合页-社区/视频列表
    print(polymerization_request().polymerization_content("choice", "39", "1", "[3239, 3242, 3243, 3245, 3246, 3247, 3248, 3275, 3277, 3278, 3279, 3289, 3309]", "85", "3", "7.48.0"))
