コード例 #1
0
        private async Task CreateAsync(MicroShareForm form)
        {
            var data = await App.Repository.Micro.ShareSaveAsync(form);

            if (data == null)
            {
                return;
            }
            var dispatcherQueue = Windows.System.DispatcherQueue.GetForCurrentThread();
            await dispatcherQueue.EnqueueAsync(() =>
            {
                Toast.Tip("发布成功");
                Frame.GoBack();
            });
        }
コード例 #2
0
 public async Task <MicroItem> ShareSaveAsync(MicroShareForm form)
 {
     return(await http.PostAsync <MicroItem>("micro/share/save", form));
 }
コード例 #3
0
 public async Task <ResponseDataOne <bool> > ShareCheckAsync(MicroShareForm form)
 {
     return(await http.PostAsync <ResponseDataOne <bool> >("micro/share", form));
 }