Skip to content

Commit

Permalink
feat(io): add plans for identity
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Feb 21, 2024
1 parent 6f5ec20 commit e3e41a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions io/src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ pub struct Header {
#[codec(crate = gstd::codec)]
#[scale_info(crate = gstd::scale_info)]
pub enum Content {
// TODO: use demo-identity instead.
Profile(Profile),
Markdown(String),
}
Expand Down Expand Up @@ -67,6 +68,10 @@ pub struct Source {
/// 2) enable this interface in the next version.
#[allow(unused)]
pub struct Domain {
/// add a new field for the owner struct.
///
/// - owner: ActorId
/// - identity: programId.
pub owner: ActorId,
pub paths: BTreeMap<String, Source>,
/// people who has edit access to the domain source.
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ extern fn handle() {
// 1) format checks.
// 2) use domain instead of simple data source.
// 3) sub paths for this domain.
// 4) integration with identity interface.
state.insert(payload.domain, payload.src);
}

Expand Down

0 comments on commit e3e41a8

Please sign in to comment.