コード例 #1
0
        /// <summary>
        ///   修改 景点门票 卡券接口
        /// </summary>
        /// <param name="cardId">卡券Id</param>
        /// <param name="cardMo">修改对应的卡券相关信息</param>
        /// <returns></returns>
        public async Task <WXUpdateCardResp> UpdateScenicCardAsync(string cardId, WXScenicCardMo cardMo)
        {
            var data = new { card_id = cardId, scenic_ticket = cardMo };

            return(await UpdateCardAsync(data));
        }
コード例 #2
0
        /// <summary>
        ///   添加 景点门票 卡券接口
        /// </summary>
        /// <param name="cardReq"></param>
        /// <returns></returns>
        public async Task <WXAddCardResp> AddScenicCardAsync(WXScenicCardMo cardReq)
        {
            var data = new { card_type = WXCardType.SCENIC_TICKET, scenic_ticket = cardReq };

            return(await AddCardAsync(data));
        }