def get_system_mall_discount_list(page, pagesize): """ 获取单次充值列表 """ return SystemMallDiscountActivity.paging(page, pagesize, order="created_time desc")
def add_system_mall_discount(did, name, start_time, end_time, server_ids, username): """ @param eid: 配置id @param name: 配置名称 """ did = int(did) info = SystemMallDiscountActivity() info.id = did info.name = name info.server_ids = server_ids if not did: info.created_user_name = username info.activity_id = str(uuid.uuid4()).replace("-","") info.start_time = start_time info.end_time = end_time info.persist()
def get_system_mall_discount(did): """ 获取充值道具列表 """ return SystemMallDiscountActivity.load(id=did)
def add_system_mall_discount(did, name, start_time, end_time, server_ids, username): """ @param eid: 配置id @param name: 配置名称 """ did = int(did) info = SystemMallDiscountActivity() info.id = did info.name = name info.server_ids = server_ids if not did: info.created_user_name = username info.activity_id = str(uuid.uuid4()).replace("-", "") info.start_time = start_time info.end_time = end_time info.persist()