Roles.sol¶
合约作用¶
增删改查不同角色的地址,方便管理员管理
合约方法¶
增加一个Store¶
方法名: appendStore
| 输入参数 | 参数含义 | 类型 |
|---|---|---|
| _newStoreName | 商户名称 | string |
| _newStoreId | 商户Id | string |
| _newStoreAddress | 商户区块链地址 | address |
增加一个企业¶
方法名: appendEnterprise
| 输入参数 | 参数含义 | 类型 |
|---|---|---|
| _newEnterpriseName | 企业名称 | string |
| _newEnterpriseId | 企业Id | string |
| _newEnterpriseAddress | 企业区块链地址 | address |
更新某个商户¶
方法名:updateStore
| 输入参数 | 参数含义 | 类型 |
|---|---|---|
| _newStoreName | 商户新名称 | string |
| _StoreId | 商户Id | string |
| _newStoreAddress | 商户新区块链地址 | address |
更新某个企业¶
方法名:updateEnterprise
| 输入参数 | 参数含义 | 类型 |
|---|---|---|
| _newEnterpriseName | 企业新名称 | string |
| _enterpriseId | 企业Id | string |
| _newEnterpriseAddress | 企业新区块链地址 | address |