feat: implement gas and delivery admin systems

This commit is contained in:
david
2026-07-30 14:16:58 +08:00
parent 1093385f95
commit f5ecc0d973
252 changed files with 49385 additions and 363 deletions

View 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
}