feat: 标准资源使用独立页面并优化详情布局
This commit is contained in:
@@ -202,6 +202,7 @@ func registerPlatformRoute(group *gin.RouterGroup) {
|
||||
account.GET("", platformlogic.ListPlatformAccount)
|
||||
account.POST("", platformlogic.CreatePlatformAccount)
|
||||
account.GET("/:identity", platformlogic.GetPlatformAccount)
|
||||
account.GET("/:identity/avatar", platformlogic.GetPlatformAccountAvatar)
|
||||
account.PUT("/:identity", platformlogic.UpdatePlatformAccount)
|
||||
account.PATCH("/:identity/status", platformlogic.UpdatePlatformAccountStatus)
|
||||
account.DELETE("/:identity", platformlogic.ArchivePlatformAccount)
|
||||
|
||||
@@ -111,6 +111,7 @@ func TestPlatformOrganizationAndAccountRoutesExposeResourceCRUD(t *testing.T) {
|
||||
assertRouteMethods(t, routes, "/heqi/platform/v1/platform_role/:identity/menu", http.MethodGet, http.MethodPut)
|
||||
assertRouteMethods(t, routes, "/heqi/platform/v1/staff_account/:identity/avatar", http.MethodGet)
|
||||
assertRouteMethods(t, routes, "/heqi/platform/v1/user_account/:identity/avatar", http.MethodGet)
|
||||
assertRouteMethods(t, routes, "/heqi/platform/v1/platform_account/:identity/avatar", http.MethodGet)
|
||||
assertNoRouteMethods(t, routes, "/heqi/platform/v1/platform_role/:identity/menus", http.MethodGet, http.MethodPost, http.MethodPut, http.MethodPatch, http.MethodDelete)
|
||||
assertNoRouteMethods(t, routes, "/heqi/platform/v1/platfrom_account", http.MethodGet, http.MethodPost, http.MethodPut, http.MethodPatch, http.MethodDelete)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user