This commit is contained in:
2025-12-01 20:53:20 +01:00
parent 88680f1954
commit 690af291b5
185 changed files with 466 additions and 849 deletions

View File

@@ -5,8 +5,8 @@ pub mut:
id u32
name string
description string
created_at i64
updated_at i64
created_at u32
updated_at u32
securitypolicy u32
tags u32 // when we set/get we always do as []string but this can then be sorted and md5ed this gies the unique id of tags
messages []u32

View File

@@ -30,6 +30,17 @@ pub fn decode_u32(data string) !u32 {
return u32(parsed_uint)
}
pub fn u32_ourtime(t u32) ourtime.OurTime {
return ourtime.OurTime{
unixt: i64(t)
}
}
pub fn ourtime_u32(t ourtime.OurTime) u32 {
return u32(t.unixt) // Convert unix time to u32
}
pub fn decode_string(data string) !string {
// Try JSON decode first (for proper JSON strings)
// if result := json2.decode[string](data) {

Some files were not shown because too many files have changed in this diff Show More