mirror of https://github.com/CympleTech/ESSE.git
29 changed files with 46 additions and 41 deletions
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
@ -1,10 +1,10 @@
@@ -1,10 +1,10 @@
|
||||
mod layer; |
||||
mod models; |
||||
|
||||
pub use organization_types::ORGANIZATION_ID as GROUP_ID; |
||||
pub use dao_types::DAO_ID as GROUP_ID; |
||||
use tdn::types::{group::GroupId, message::SendType, primitive::HandleResult}; |
||||
|
||||
/// Send to organization service.
|
||||
/// Send to dao service.
|
||||
#[inline] |
||||
pub(crate) fn add_layer(results: &mut HandleResult, gid: GroupId, msg: SendType) { |
||||
results.layers.push((gid, GROUP_ID, msg)); |
@ -1,6 +1,11 @@
@@ -1,6 +1,11 @@
|
||||
#[rustfmt::skip] |
||||
pub(super) const ORGANIZATION_VERSIONS: [&str; 8] = [ |
||||
"CREATE TABLE IF NOT EXISTS organizations( |
||||
pub(super) const DAO_VERSIONS: [&str; 0] = [ |
||||
|
||||
]; |
||||
|
||||
#[rustfmt::skip] |
||||
pub(super) const _DAO_VERSIONS: [&str; 8] = [ |
||||
"CREATE TABLE IF NOT EXISTS daos( |
||||
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, |
||||
height INTEGER NOT NULL, |
||||
owner TEXT NOT NULL, |
Loading…
Reference in new issue