feat: implement gas and delivery admin systems
This commit is contained in:
33
backend/api/internal/logic/delivery/resource_contract.go
Normal file
33
backend/api/internal/logic/delivery/resource_contract.go
Normal file
@@ -0,0 +1,33 @@
|
||||
package delivery
|
||||
|
||||
type ResourceContract struct {
|
||||
Domain string `json:"domain"`
|
||||
Name string `json:"name"`
|
||||
Path string `json:"path"`
|
||||
PageKind string `json:"pageKind"`
|
||||
Mode string `json:"mode"`
|
||||
}
|
||||
|
||||
func ExpectedResources() []ResourceContract {
|
||||
items := []ResourceContract{
|
||||
{"profile", "delivery_profile", "/delivery_profile", "list", "readonly"},
|
||||
{"staff", "staff_account", "/staff_account", "list", "writable"},
|
||||
{"staff", "staff_credential", "/staff_credential", "list", "writable"},
|
||||
{"user", "user_account", "/user_account", "list", "writable"},
|
||||
{"user", "user_address", "/user_address", "list", "writable"},
|
||||
{"contract", "gasorder_contract", "/gasorder_contract", "list", "managed"},
|
||||
{"contract", "gasorder_contract_product", "/gasorder_contract_product", "list", "append_only"},
|
||||
{"contract", "gasorder_contract_revision", "/gasorder_contract_revision", "list", "readonly"},
|
||||
{"contract", "product_info", "/product_info", "list", "readonly"},
|
||||
{"gasorder", "gasorder_basic", "/gasorder_basic", "list", "append_only"},
|
||||
{"finance", "wallet_basic", "/wallet_basic", "list", "readonly"},
|
||||
{"finance", "wallet_bank", "/wallet_bank", "list", "readonly"},
|
||||
{"finance", "wallet_payment", "/wallet_payment", "list", "readonly"},
|
||||
{"finance", "wallet_record", "/wallet_record", "list", "readonly"},
|
||||
{"finance", "wallet_refund", "/wallet_refund", "list", "readonly"},
|
||||
{"finance", "wallet_recharge", "/wallet_recharge", "list", "append_only"},
|
||||
{"finance", "wallet_apply_cash", "/wallet_apply_cash", "list", "append_only"},
|
||||
{"finance", "fin_settlement", "/fin_settlement", "list", "readonly"},
|
||||
}
|
||||
return items
|
||||
}
|
||||
Reference in New Issue
Block a user