2026-07-30 14:16:58 +08:00
|
|
|
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"},
|
2026-08-02 23:24:32 +08:00
|
|
|
{"finance", "payment_order", "/payment_order", "list", "readonly"},
|
2026-07-30 14:16:58 +08:00
|
|
|
{"finance", "wallet_record", "/wallet_record", "list", "readonly"},
|
2026-08-02 23:24:32 +08:00
|
|
|
{"finance", "payment_refund", "/payment_refund", "list", "readonly"},
|
2026-07-30 14:16:58 +08:00
|
|
|
{"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
|
|
|
|
|
}
|