-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from Jzow/master
- Loading branch information
Showing
23 changed files
with
542 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
domain/src/main/java/com/wansensoft/dto/role/RoleListDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.wansensoft.dto.role; | ||
|
||
import com.wansensoft.dto.PageSizeDTO; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
@EqualsAndHashCode(callSuper = true) | ||
@Data | ||
public class RoleListDTO extends PageSizeDTO { | ||
|
||
private String roleName; | ||
|
||
private Integer status; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
service/src/main/java/com/wansensoft/service/role/KtSysRoleMenuRelService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright 2023-2033 WanSen AI Team, Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance | ||
* with the License. A copy of the License is located at | ||
* | ||
* http://opensource.wansenai.com/apache2.0/ | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES | ||
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions | ||
* and limitations under the License. | ||
*/ | ||
package com.wansensoft.service.role | ||
|
||
import com.wansensoft.entities.role.SysRoleMenuRel | ||
import com.baomidou.mybatisplus.extension.service.IService | ||
|
||
interface KtSysRoleMenuRelService : IService<SysRoleMenuRel> { | ||
|
||
fun listByRoleId(roleId: Long?): List<SysRoleMenuRel> | ||
|
||
} |
30 changes: 30 additions & 0 deletions
30
service/src/main/java/com/wansensoft/service/role/KtSysRoleMenuRelServiceImpl.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright 2023-2033 WanSen AI Team, Inc. All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance | ||
* with the License. A copy of the License is located at | ||
* | ||
* http://opensource.wansenai.com/apache2.0/ | ||
* | ||
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES | ||
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions | ||
* and limitations under the License. | ||
*/ | ||
package com.wansensoft.service.role | ||
|
||
import com.wansensoft.entities.role.SysRoleMenuRel | ||
import com.wansensoft.mappers.role.SysRoleMenuRelMapper | ||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl | ||
import org.springframework.stereotype.Service | ||
|
||
@Service | ||
open class KtSysRoleMenuRelServiceImpl : ServiceImpl<SysRoleMenuRelMapper, SysRoleMenuRel>(), KtSysRoleMenuRelService { | ||
|
||
override fun listByRoleId(roleId: Long?): List<SysRoleMenuRel> { | ||
requireNotNull(roleId) { "roleId must not be null" } | ||
|
||
return lambdaQuery() | ||
.eq(SysRoleMenuRel::getRoleId, roleId) | ||
.list() | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
service/src/main/java/com/wansensoft/service/role/KtSysRoleService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.wansensoft.service.role | ||
|
||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page | ||
import com.baomidou.mybatisplus.extension.service.IService | ||
import com.wansensoft.dto.role.RoleListDTO | ||
import com.wansensoft.entities.role.SysRole | ||
import com.wansensoft.utils.response.Response | ||
import com.wansensoft.vo.RoleVO | ||
|
||
interface KtSysRoleService : IService<SysRole> { | ||
|
||
fun roleList() : Response<List<RoleVO>> | ||
|
||
fun rolePageList(roleListDTO: RoleListDTO?) : Response<Page<RoleVO>> | ||
|
||
fun updateStatus(id: String?, status: Int?) : Response<String> | ||
} |
Oops, something went wrong.