|
|
@ -0,0 +1,35 @@ |
|
|
|
package com.storeroom.modules.dictionary.controller; |
|
|
|
|
|
|
|
|
|
|
|
import com.storeroom.annotaion.rest.AnonymousGetMapping; |
|
|
|
import com.storeroom.modules.common.ArchivesTypeEnum; |
|
|
|
import com.storeroom.utils.ApiResponse; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
|
|
|
|
@Api(tags = "门类管理") |
|
|
|
@RestController |
|
|
|
@RequiredArgsConstructor |
|
|
|
@RequestMapping("/api/archives-type/") |
|
|
|
public class ArchivesTypeController { |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("门类类型") |
|
|
|
@AnonymousGetMapping("dropdown-list") |
|
|
|
public ApiResponse<Object> getType(){ |
|
|
|
Map<Integer,String> list=new LinkedHashMap<>(); |
|
|
|
list.put(ArchivesTypeEnum.folder.getCode(),ArchivesTypeEnum.folder.getType()); |
|
|
|
list.put(ArchivesTypeEnum.project.getCode(),ArchivesTypeEnum.project.getType()); |
|
|
|
list.put(ArchivesTypeEnum.archives.getCode(),ArchivesTypeEnum.archives.getType()); |
|
|
|
list.put(ArchivesTypeEnum.inChive.getCode(),ArchivesTypeEnum.inChive.getType()); |
|
|
|
list.put(ArchivesTypeEnum.files.getCode(),ArchivesTypeEnum.folder.getType()); |
|
|
|
list.put(ArchivesTypeEnum.Template.getCode(),ArchivesTypeEnum.Template.getType()); |
|
|
|
return ApiResponse.success(list); |
|
|
|
} |
|
|
|
} |