2022-08-03 19:36:42 +08:00

50 lines
1.9 KiB
TypeScript

/**
* 前台地址
*/
export default class Url {
//TODO 钱包登录
static readonly GET_NONCE : string = 'get-nonce'
static readonly METAMASK_LOGIN : string = 'metamask-login'
static readonly LOGOUT : string = "logout";
static readonly HOME : string = "home";
//TODO 用户
static readonly USER : string = "user";
static readonly SHOW_USER : string = "user/%d";
static readonly SHOW_MENU : string = "show-menu/%d";
static readonly ALLOT_NODE_GROUP : string = "allot-node-group/%d";
static readonly ALLOT_MENU : string = "allot-menu/%d";
static readonly UPDATE_NICKNAME : string = "update-nickname";
// TODO 菜单
static readonly MENUS : string = "menu";
static readonly DELETE_MENU : string = "menu/%d";
static readonly UPDATE_MENU : string = "menu/%d";
static readonly MY_MENU : string = "my-menu";
//TODO 权限
static readonly NODE : string = "node";
static readonly NODE_GROUP : string = "node-group";
static readonly SHOW_NODE_GROUP : string = "node-group/%d";
static readonly DELETE_NODE_GROUP : string = "node-group/%d";
static readonly UPDATE_NODE : string = "node/%d";
static readonly DELETE_NODE : string = "node/%d";
static readonly ALLOT_NODE : string = "allot-node/%d";
//TODO metamask
static readonly NFT : string = "nft";
static readonly NFT_SHOW : string = "nft/show";
static readonly MINT : string = "mint";
static readonly EXPORTS : string = "exports";
//TODO CEBG
static readonly APPLY : string = "apply/%d";
static readonly ADD_APPLY : string = "apply";
static readonly SHOW_APPLY : string = "show-apply/%d";
static readonly DELETE_APPLY : string = "apply/%d";
static readonly APPLY_PASS : string = "apply/pass/%d";
static readonly APPLY_NO_PASS : string = "apply/no-pass/%d";
static readonly EXECUTE_APPLY : string = "apply/execute/%d";
}