组织导出、用户导出添加字段

This commit is contained in:
yangsb
2024-04-17 13:44:32 +08:00
parent 088d6ea1b1
commit 31f50e57f1
13 changed files with 345 additions and 11 deletions
@@ -3,6 +3,7 @@ package com.cf.imes.module.system.api.user;
import com.cf.imes.framework.common.pojo.CommonResult;
import com.cf.imes.framework.common.util.collection.CollectionUtils;
import com.cf.imes.module.system.api.user.dto.AdminUserRespDTO;
import com.cf.imes.module.system.api.user.dto.OrganAdminUserRespDTO;
import com.cf.imes.module.system.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Parameters;
import io.swagger.v3.oas.annotations.tags.Tag;
@@ -67,4 +68,10 @@ public interface AdminUserApi {
})
CommonResult<AdminUserRespDTO> validateUser(@RequestParam("name") String name, @RequestParam("organId") Long organId);
@GetMapping(PREFIX + "/getOrganAdminByOrganIds")
@Operation(summary = "通过组织 ID 查询组织管理员用户列表")
@Parameter(name = "organIds", description = "组织id列表", example = "1,3", required = true)
CommonResult<List<OrganAdminUserRespDTO>> getOrganAdminByOrganIds(@RequestParam("id") Collection<Long> organIds);
}
@@ -0,0 +1,26 @@
package com.cf.imes.module.system.api.user.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author Beal
* 组织管理员用户信息
*/
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OrganAdminUserRespDTO {
@Schema(description = "组织id")
private Long organId;
@Schema(description = "用户id")
private Long userId;
@Schema(description = "用户昵称")
private String nickname;
@Schema(description = "用户账号")
private String username;
}