@@ -22,7 +22,7 @@ func (a *api) Initialize() error {
|
||||
{ApiGroup: "jwt", Method: "POST", Path: "/jwt/jsonInBlacklist", Description: "jwt加入黑名单(退出,必选)"},
|
||||
|
||||
{ApiGroup: "系统用户", Method: "DELETE", Path: "/user/deleteUser", Description: "删除用户"},
|
||||
{ApiGroup: "系统用户", Method: "POST", Path: "/user/register", Description: "用户注册"},
|
||||
{ApiGroup: "系统用户", Method: "POST", Path: "/user/admin_register", Description: "用户注册"},
|
||||
{ApiGroup: "系统用户", Method: "POST", Path: "/user/getUserList", Description: "获取用户列表"},
|
||||
{ApiGroup: "系统用户", Method: "PUT", Path: "/user/setUserInfo", Description: "设置用户信息"},
|
||||
{ApiGroup: "系统用户", Method: "PUT", Path: "/user/setSelfInfo", Description: "设置自身信息(必选)"},
|
||||
|
@@ -19,7 +19,7 @@ func (c *casbin) TableName() string {
|
||||
func (c *casbin) Initialize() error {
|
||||
entities := []adapter.CasbinRule{
|
||||
{PType: "p", V0: "888", V1: "/base/login", V2: "POST"},
|
||||
{PType: "p", V0: "888", V1: "/user/register", V2: "POST"},
|
||||
{PType: "p", V0: "888", V1: "/user/admin_register", V2: "POST"},
|
||||
|
||||
{PType: "p", V0: "888", V1: "/api/createApi", V2: "POST"},
|
||||
{PType: "p", V0: "888", V1: "/api/getApiList", V2: "POST"},
|
||||
@@ -125,7 +125,7 @@ func (c *casbin) Initialize() error {
|
||||
{PType: "p", V0: "888", V1: "/authorityBtn/canRemoveAuthorityBtn", V2: "POST"},
|
||||
|
||||
{PType: "p", V0: "8881", V1: "/base/login", V2: "POST"},
|
||||
{PType: "p", V0: "8881", V1: "/user/register", V2: "POST"},
|
||||
{PType: "p", V0: "8881", V1: "/user/admin_register", V2: "POST"},
|
||||
{PType: "p", V0: "8881", V1: "/api/createApi", V2: "POST"},
|
||||
{PType: "p", V0: "8881", V1: "/api/getApiList", V2: "POST"},
|
||||
{PType: "p", V0: "8881", V1: "/api/getApiById", V2: "POST"},
|
||||
@@ -164,7 +164,7 @@ func (c *casbin) Initialize() error {
|
||||
{PType: "p", V0: "8881", V1: "/user/getUserInfo", V2: "GET"},
|
||||
|
||||
{PType: "p", V0: "9528", V1: "/base/login", V2: "POST"},
|
||||
{PType: "p", V0: "9528", V1: "/user/register", V2: "POST"},
|
||||
{PType: "p", V0: "9528", V1: "/user/admin_register", V2: "POST"},
|
||||
{PType: "p", V0: "9528", V1: "/api/createApi", V2: "POST"},
|
||||
{PType: "p", V0: "9528", V1: "/api/getApiList", V2: "POST"},
|
||||
{PType: "p", V0: "9528", V1: "/api/getApiById", V2: "POST"},
|
||||
|
Reference in New Issue
Block a user