public async Task DeleteEmail(string id) { // 获取所有待更新的key LiteDb.Delete <SendBox>(id); LiteDb.Delete <ReceiveBox>(id); await ResponseSuccessAsync("success"); }
public async Task DeleteHistoryGroup(string historyId) { // 删除发送记录 LiteDb.DeleteMany <SendItem>(item => item.historyId == historyId); // 删除组 LiteDb.Delete <HistoryGroup>(historyId); // 获取状态 await ResponseSuccessAsync(true); }
public async Task DeleteTemplates(string id) { var deleteResult = LiteDb.Delete <Template>(id); if (deleteResult) { await ResponseSuccessAsync(deleteResult); } else { await ResponseErrorAsync("删除失败"); } }