...
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user