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(); }); }
public async Task <MicroItem> ShareSaveAsync(MicroShareForm form) { return(await http.PostAsync <MicroItem>("micro/share/save", form)); }
public async Task <ResponseDataOne <bool> > ShareCheckAsync(MicroShareForm form) { return(await http.PostAsync <ResponseDataOne <bool> >("micro/share", form)); }