dingxin_toolbox
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
504 B

from dspt_api.util.api.cinema_hall_seats import ApiCinemaHallSeats
# 通过api来匹配不同的接口文件获取推荐
# 返回推荐参数应该包含参数名,参数值,和是否勾选的状态
def suggest_params(member_type, api, ip):
data = {'member_type': member_type, 'api': api, 'ip': ip}
params = []
if api == 'cinema/hall-seats' and member_type == 'nonmember':
print('cinema/hall-seats')
params = ApiCinemaHallSeats(**data).get_suggestion()
return params