Add id
This commit is contained in:
parent
c130391186
commit
80c94711ae
2 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,7 @@ pub const Database = struct {
|
|||
|
||||
pub fn getNote(_: *Database, alloc: std.mem.Allocator) !models.Note {
|
||||
return try clone(alloc, models.Note{
|
||||
.id = "1",
|
||||
.content = "abcd",
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
pub const Note = struct {
|
||||
id: []const u8,
|
||||
content: []const u8,
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue