public async Task UpsertTemplate(string id) { // 获取用户名 var template = Body.ToObject <Template>(); template._id = id; template.userId = Token.UserId; template.createDate = DateTime.Now; LiteDb.Upsert(template); // 返回结果 await ResponseSuccessAsync(template); }