All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cloud.hedou.abp.identity.RemoteIdentityApi.kt Maven / Gradle / Ivy

Go to download

When the functions of ABP cannot meet service requirements, the Spring Boot framework can be used to expand its own services to make use of abundant Java frameworks on the market.

There is a newer version: 1.0.1
Show newest version
package cloud.hedou.abp.identity

import cloud.hedou.abp.remote.Api
import cloud.hedou.abp.remote.PagedList
import cloud.hedou.abp.remote.UserConfiguration
import retrofit2.Call
import retrofit2.http.*

@Api(44318)
interface RemoteIdentityApi {

    /** 根据部门与角色搜索用户 */
    @GET("api/identity/users")
    fun findUsers(
        @Query("RoleId") roleId: String?,
        @Query("OrganizationUnitId") departmentId: String?,
        @Query("SkipCount") skipCount: Long,
        @Query("MaxResultCount") resultCount: Long,
    ): Call>

    @GET("api/identity/roles")
    fun getRoles(
        @Query("SkipCount") skip: Long,
        @Query("MaxResultCount") count: Long
    ): Call>

    /** 通过用户ID查询用户信息 */
    @GET("api/identity/users/{id}")
    fun getUserById(@Path("id") userId: String): Call

    /** 获取指定用户所属的部门 */
    @GET("api/identity/organization-units/{id}")
    fun getDepartmentById(@Path("id") departmentId: String): Call

    /** 获取指定用户所属的部门 */
    @GET("api/identity/users/{id}/organization-units")
    fun getDepartmentsByUserId(@Path("id") userId: String): Call>

    /** 获取指定用户所属的部门 */
    @GET("api/identity/organization-units")
    fun getDepartments(
        @Query("SkipCount") skipCount: Long,
        @Query("MaxResultCount") maxResultCount: Long
    ): Call>

    /** 获取某个用户的角色列表 */
    @GET("api/identity/users/{id}/roles")
    fun getRoleByUserId(@Path("id") userId: String): Call>

    /** 获取指定部门下的角色列表 */
    @GET("api/identity/organization-units/{id}/roles")
    fun getRolesByDepartmentId(
        @Path("id") departmentId: String,
        @Query("SkipCount") skip: Int,
        @Query("MaxResultCount") count: Int
    ): Call>

    /** 获取指定部门下的用户列表 */
    @GET("api/identity/organization-units/{id}/members")
    fun getUsersByDepartmentId(
        @Path("id") departmentId: String,
        @Query("SkipCount") skip: Int,
        @Query("MaxResultCount") count: Int
    ): Call>

    /** 获取所有的权限列表 */
    @GET("api/abp/application-configuration")
    fun getUserConfiguration(): Call

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy