@ -96,22 +96,21 @@ public class ResourcesController extends BaseController {
private UdfFuncService udfFuncService ;
/ * *
*
* @param loginUser login user
* @param type type
* @param alias alias
* @param loginUser login user
* @param type type
* @param alias alias
* @param description description
* @param pid parent id
* @param currentDir current directory
* @param pid parent id
* @param currentDir current directory
* @return create result code
* /
@ApiOperation ( value = "createDirctory" , notes = "CREATE_RESOURCE_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" ) ,
@ApiImplicitParam ( name = "name" , value = "RESOURCE_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "description" , value = "RESOURCE_DESC" , dataType = "String" ) ,
@ApiImplicitParam ( name = "pid" , value = "RESOURCE_PID" , required = true , dataType = "Int" , example = "10" ) ,
@ApiImplicitParam ( name = "currentDir" , value = "RESOURCE_CURRENTDIR" , required = true , dataType = "String" )
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" ) ,
@ApiImplicitParam ( name = "name" , value = "RESOURCE_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "description" , value = "RESOURCE_DESC" , dataType = "String" ) ,
@ApiImplicitParam ( name = "pid" , value = "RESOURCE_PID" , required = true , dataType = "Int" , example = "10" ) ,
@ApiImplicitParam ( name = "currentDir" , value = "RESOURCE_CURRENTDIR" , required = true , dataType = "String" )
} )
@PostMapping ( value = "/directory/create" )
@ApiException ( CREATE_RESOURCE_ERROR )
@ -127,23 +126,17 @@ public class ResourcesController extends BaseController {
/ * *
* create resource
* @param loginUser
* @param type
* @param alias
* @param description
* @param file
* @param pid
* @param currentDir
*
* @return create result code
* /
@ApiOperation ( value = "createResource" , notes = "CREATE_RESOURCE_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" ) ,
@ApiImplicitParam ( name = "name" , value = "RESOURCE_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "description" , value = "RESOURCE_DESC" , dataType = "String" ) ,
@ApiImplicitParam ( name = "file" , value = "RESOURCE_FILE" , required = true , dataType = "MultipartFile" ) ,
@ApiImplicitParam ( name = "pid" , value = "RESOURCE_PID" , required = true , dataType = "Int" , example = "10" ) ,
@ApiImplicitParam ( name = "currentDir" , value = "RESOURCE_CURRENTDIR" , required = true , dataType = "String" )
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" ) ,
@ApiImplicitParam ( name = "name" , value = "RESOURCE_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "description" , value = "RESOURCE_DESC" , dataType = "String" ) ,
@ApiImplicitParam ( name = "file" , value = "RESOURCE_FILE" , required = true , dataType = "MultipartFile" ) ,
@ApiImplicitParam ( name = "pid" , value = "RESOURCE_PID" , required = true , dataType = "Int" , example = "10" ) ,
@ApiImplicitParam ( name = "currentDir" , value = "RESOURCE_CURRENTDIR" , required = true , dataType = "String" )
} )
@PostMapping ( value = "/create" )
@ApiException ( CREATE_RESOURCE_ERROR )
@ -166,16 +159,16 @@ public class ResourcesController extends BaseController {
* @param resourceId resource id
* @param type resource type
* @param description description
* @param file resource file
* @param file resource file
* @return update result code
* /
@ApiOperation ( value = "updateResource" , notes = "UPDATE_RESOURCE_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" ) ,
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" ) ,
@ApiImplicitParam ( name = "name" , value = "RESOURCE_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "description" , value = "RESOURCE_DESC" , dataType = "String" ) ,
@ApiImplicitParam ( name = "file" , value = "RESOURCE_FILE" , required = true , dataType = "MultipartFile" )
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" ) ,
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" ) ,
@ApiImplicitParam ( name = "name" , value = "RESOURCE_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "description" , value = "RESOURCE_DESC" , dataType = "String" ) ,
@ApiImplicitParam ( name = "file" , value = "RESOURCE_FILE" , required = true , dataType = "MultipartFile" )
} )
@PostMapping ( value = "/update" )
@ApiException ( UPDATE_RESOURCE_ERROR )
@ -185,7 +178,7 @@ public class ResourcesController extends BaseController {
@RequestParam ( value = "type" ) ResourceType type ,
@RequestParam ( value = "name" ) String alias ,
@RequestParam ( value = "description" , required = false ) String description ,
@RequestParam ( value = "file" , required = false ) MultipartFile file ) {
@RequestParam ( value = "file" , required = false ) MultipartFile file ) {
return resourceService . updateResource ( loginUser , resourceId , alias , description , type , file ) ;
}
@ -198,7 +191,7 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "queryResourceList" , notes = "QUERY_RESOURCE_LIST_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" )
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" )
} )
@GetMapping ( value = "/list" )
@ResponseStatus ( HttpStatus . OK )
@ -223,11 +216,11 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "queryResourceListPaging" , notes = "QUERY_RESOURCE_LIST_PAGING_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" ) ,
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = true , dataType = "int" , example = "10" ) ,
@ApiImplicitParam ( name = "searchVal" , value = "SEARCH_VAL" , dataType = "String" ) ,
@ApiImplicitParam ( name = "pageNo" , value = "PAGE_NO" , required = true , dataType = "Int" , example = "1" ) ,
@ApiImplicitParam ( name = "pageSize" , value = "PAGE_SIZE" , required = true , dataType = "Int" , example = "20" )
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" ) ,
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = true , dataType = "int" , example = "10" ) ,
@ApiImplicitParam ( name = "searchVal" , value = "SEARCH_VAL" , dataType = "String" ) ,
@ApiImplicitParam ( name = "pageNo" , value = "PAGE_NO" , required = true , dataType = "Int" , example = "1" ) ,
@ApiImplicitParam ( name = "pageSize" , value = "PAGE_SIZE" , required = true , dataType = "Int" , example = "20" )
} )
@GetMapping ( value = "/list-paging" )
@ResponseStatus ( HttpStatus . OK )
@ -260,7 +253,7 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "deleteResource" , notes = "DELETE_RESOURCE_BY_ID_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" )
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" )
} )
@GetMapping ( value = "/delete" )
@ResponseStatus ( HttpStatus . OK )
@ -283,8 +276,8 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "verifyResourceName" , notes = "VERIFY_RESOURCE_NAME_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" ) ,
@ApiImplicitParam ( name = "fullName" , value = "RESOURCE_FULL_NAME" , required = true , dataType = "String" )
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" ) ,
@ApiImplicitParam ( name = "fullName" , value = "RESOURCE_FULL_NAME" , required = true , dataType = "String" )
} )
@GetMapping ( value = "/verify-name" )
@ResponseStatus ( HttpStatus . OK )
@ -306,7 +299,7 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "queryResourceByProgramType" , notes = "QUERY_RESOURCE_LIST_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" )
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" )
} )
@GetMapping ( value = "/list/jar" )
@ResponseStatus ( HttpStatus . OK )
@ -314,9 +307,9 @@ public class ResourcesController extends BaseController {
@AccessLogAnnotation ( ignoreRequestArgs = "loginUser" )
public Result queryResourceJarList ( @ApiIgnore @RequestAttribute ( value = Constants . SESSION_USER ) User loginUser ,
@RequestParam ( value = "type" ) ResourceType type ,
@RequestParam ( value = "programType" , required = false ) ProgramType programType
@RequestParam ( value = "programType" , required = false ) ProgramType programType
) {
Map < String , Object > result = resourceService . queryResourceByProgramType ( loginUser , type , programType ) ;
Map < String , Object > result = resourceService . queryResourceByProgramType ( loginUser , type , programType ) ;
return returnDataList ( result ) ;
}
@ -331,9 +324,9 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "queryResource" , notes = "QUERY_BY_RESOURCE_NAME" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" ) ,
@ApiImplicitParam ( name = "fullName" , value = "RESOURCE_FULL_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = false , dataType = "Int" , example = "10" )
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" ) ,
@ApiImplicitParam ( name = "fullName" , value = "RESOURCE_FULL_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = false , dataType = "Int" , example = "10" )
} )
@GetMapping ( value = "/queryResource" )
@ResponseStatus ( HttpStatus . OK )
@ -359,9 +352,9 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "viewResource" , notes = "VIEW_RESOURCE_BY_ID_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" ) ,
@ApiImplicitParam ( name = "skipLineNum" , value = "SKIP_LINE_NUM" , required = true , dataType = "Int" , example = "100" ) ,
@ApiImplicitParam ( name = "limit" , value = "LIMIT" , required = true , dataType = "Int" , example = "100" )
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" ) ,
@ApiImplicitParam ( name = "skipLineNum" , value = "SKIP_LINE_NUM" , required = true , dataType = "Int" , example = "100" ) ,
@ApiImplicitParam ( name = "limit" , value = "LIMIT" , required = true , dataType = "Int" , example = "100" )
} )
@GetMapping ( value = "/view" )
@ApiException ( VIEW_RESOURCE_FILE_ON_LINE_ERROR )
@ -376,25 +369,18 @@ public class ResourcesController extends BaseController {
/ * *
* create resource file online
* @param loginUser
* @param type
* @param fileName
* @param fileSuffix
* @param description
* @param content
* @param pid
* @param currentDir
*
* @return create result code
* /
@ApiOperation ( value = "onlineCreateResource" , notes = "ONLINE_CREATE_RESOURCE_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" ) ,
@ApiImplicitParam ( name = "fileName" , value = "RESOURCE_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "suffix" , value = "SUFFIX" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "description" , value = "RESOURCE_DESC" , dataType = "String" ) ,
@ApiImplicitParam ( name = "content" , value = "CONTENT" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "pid" , value = "RESOURCE_PID" , required = true , dataType = "Int" , example = "10" ) ,
@ApiImplicitParam ( name = "currentDir" , value = "RESOURCE_CURRENTDIR" , required = true , dataType = "String" )
@ApiImplicitParam ( name = "type" , value = "RESOURCE_TYPE" , required = true , dataType = "ResourceType" ) ,
@ApiImplicitParam ( name = "fileName" , value = "RESOURCE_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "suffix" , value = "SUFFIX" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "description" , value = "RESOURCE_DESC" , dataType = "String" ) ,
@ApiImplicitParam ( name = "content" , value = "CONTENT" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "pid" , value = "RESOURCE_PID" , required = true , dataType = "Int" , example = "10" ) ,
@ApiImplicitParam ( name = "currentDir" , value = "RESOURCE_CURRENTDIR" , required = true , dataType = "String" )
} )
@PostMapping ( value = "/online-create" )
@ApiException ( CREATE_RESOURCE_FILE_ON_LINE_ERROR )
@ -425,8 +411,8 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "updateResourceContent" , notes = "UPDATE_RESOURCE_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" ) ,
@ApiImplicitParam ( name = "content" , value = "CONTENT" , required = true , dataType = "String" )
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" ) ,
@ApiImplicitParam ( name = "content" , value = "CONTENT" , required = true , dataType = "String" )
} )
@PostMapping ( value = "/update-content" )
@ApiException ( EDIT_RESOURCE_FILE_ON_LINE_ERROR )
@ -451,7 +437,7 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "downloadResource" , notes = "DOWNLOAD_RESOURCE_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" )
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" )
} )
@GetMapping ( value = "/download" )
@ResponseBody
@ -464,9 +450,9 @@ public class ResourcesController extends BaseController {
return ResponseEntity . status ( HttpStatus . BAD_REQUEST ) . body ( Status . RESOURCE_NOT_EXIST . getMsg ( ) ) ;
}
return ResponseEntity
. ok ( )
. header ( HttpHeaders . CONTENT_DISPOSITION , "attachment; filename=\"" + file . getFilename ( ) + "\"" )
. body ( file ) ;
. ok ( )
. header ( HttpHeaders . CONTENT_DISPOSITION , "attachment; filename=\"" + file . getFilename ( ) + "\"" )
. body ( file ) ;
}
@ -485,13 +471,13 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "createUdfFunc" , notes = "CREATE_UDF_FUNCTION_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "type" , value = "UDF_TYPE" , required = true , dataType = "UdfType" ) ,
@ApiImplicitParam ( name = "funcName" , value = "FUNC_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "className" , value = "CLASS_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "argTypes" , value = "ARG_TYPES" , dataType = "String" ) ,
@ApiImplicitParam ( name = "database" , value = "DATABASE_NAME" , dataType = "String" ) ,
@ApiImplicitParam ( name = "description" , value = "UDF_DESC" , dataType = "String" ) ,
@ApiImplicitParam ( name = "resourceId" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" )
@ApiImplicitParam ( name = "type" , value = "UDF_TYPE" , required = true , dataType = "UdfType" ) ,
@ApiImplicitParam ( name = "funcName" , value = "FUNC_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "className" , value = "CLASS_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "argTypes" , value = "ARG_TYPES" , dataType = "String" ) ,
@ApiImplicitParam ( name = "database" , value = "DATABASE_NAME" , dataType = "String" ) ,
@ApiImplicitParam ( name = "description" , value = "UDF_DESC" , dataType = "String" ) ,
@ApiImplicitParam ( name = "resourceId" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" )
} )
@PostMapping ( value = "/udf-func/create" )
@ -518,7 +504,7 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "viewUIUdfFunction" , notes = "VIEW_UDF_FUNCTION_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" )
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" )
} )
@GetMapping ( value = "/udf-func/update-ui" )
@ -547,14 +533,14 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "updateUdfFunc" , notes = "UPDATE_UDF_FUNCTION_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "id" , value = "UDF_ID" , required = true , dataType = "Int" ) ,
@ApiImplicitParam ( name = "type" , value = "UDF_TYPE" , required = true , dataType = "UdfType" ) ,
@ApiImplicitParam ( name = "funcName" , value = "FUNC_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "className" , value = "CLASS_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "argTypes" , value = "ARG_TYPES" , dataType = "String" ) ,
@ApiImplicitParam ( name = "database" , value = "DATABASE_NAME" , dataType = "String" ) ,
@ApiImplicitParam ( name = "description" , value = "UDF_DESC" , dataType = "String" ) ,
@ApiImplicitParam ( name = "resourceId" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" )
@ApiImplicitParam ( name = "id" , value = "UDF_ID" , required = true , dataType = "Int" ) ,
@ApiImplicitParam ( name = "type" , value = "UDF_TYPE" , required = true , dataType = "UdfType" ) ,
@ApiImplicitParam ( name = "funcName" , value = "FUNC_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "className" , value = "CLASS_NAME" , required = true , dataType = "String" ) ,
@ApiImplicitParam ( name = "argTypes" , value = "ARG_TYPES" , dataType = "String" ) ,
@ApiImplicitParam ( name = "database" , value = "DATABASE_NAME" , dataType = "String" ) ,
@ApiImplicitParam ( name = "description" , value = "UDF_DESC" , dataType = "String" ) ,
@ApiImplicitParam ( name = "resourceId" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" )
} )
@PostMapping ( value = "/udf-func/update" )
@ -584,18 +570,18 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "queryUdfFuncListPaging" , notes = "QUERY_UDF_FUNCTION_LIST_PAGING_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "searchVal" , value = "SEARCH_VAL" , dataType = "String" ) ,
@ApiImplicitParam ( name = "pageNo" , value = "PAGE_NO" , required = true , dataType = "Int" , example = "1" ) ,
@ApiImplicitParam ( name = "pageSize" , value = "PAGE_SIZE" , required = true , dataType = "Int" , example = "20" )
@ApiImplicitParam ( name = "searchVal" , value = "SEARCH_VAL" , dataType = "String" ) ,
@ApiImplicitParam ( name = "pageNo" , value = "PAGE_NO" , required = true , dataType = "Int" , example = "1" ) ,
@ApiImplicitParam ( name = "pageSize" , value = "PAGE_SIZE" , required = true , dataType = "Int" , example = "20" )
} )
@GetMapping ( value = "/udf-func/list-paging" )
@ResponseStatus ( HttpStatus . OK )
@ApiException ( QUERY_UDF_FUNCTION_LIST_PAGING_ERROR )
@AccessLogAnnotation ( ignoreRequestArgs = "loginUser" )
public Result < Object > queryUdfFuncListPaging ( @ApiIgnore @RequestAttribute ( value = Constants . SESSION_USER ) User loginUser ,
@RequestParam ( "pageNo" ) Integer pageNo ,
@RequestParam ( value = "searchVal" , required = false ) String searchVal ,
@RequestParam ( "pageSize" ) Integer pageSize
@RequestParam ( "pageNo" ) Integer pageNo ,
@RequestParam ( value = "searchVal" , required = false ) String searchVal ,
@RequestParam ( "pageSize" ) Integer pageSize
) {
Map < String , Object > result = checkPageParams ( pageNo , pageSize ) ;
if ( result . get ( Constants . STATUS ) ! = Status . SUCCESS ) {
@ -615,14 +601,14 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "queryUdfFuncList" , notes = "QUERY_UDF_FUNC_LIST_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "type" , value = "UDF_TYPE" , required = true , dataType = "UdfType" )
@ApiImplicitParam ( name = "type" , value = "UDF_TYPE" , required = true , dataType = "UdfType" )
} )
@GetMapping ( value = "/udf-func/list" )
@ResponseStatus ( HttpStatus . OK )
@ApiException ( QUERY_DATASOURCE_BY_TYPE_ERROR )
@AccessLogAnnotation ( ignoreRequestArgs = "loginUser" )
public Result < Object > queryUdfFuncList ( @ApiIgnore @RequestAttribute ( value = Constants . SESSION_USER ) User loginUser ,
@RequestParam ( "type" ) UdfType type ) {
@RequestParam ( "type" ) UdfType type ) {
Map < String , Object > result = udfFuncService . queryUdfFuncList ( loginUser , type . ordinal ( ) ) ;
return returnDataList ( result ) ;
}
@ -636,7 +622,7 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "verifyUdfFuncName" , notes = "VERIFY_UDF_FUNCTION_NAME_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "name" , value = "FUNC_NAME" , required = true , dataType = "String" )
@ApiImplicitParam ( name = "name" , value = "FUNC_NAME" , required = true , dataType = "String" )
} )
@GetMapping ( value = "/udf-func/verify-name" )
@ -659,7 +645,7 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "deleteUdfFunc" , notes = "DELETE_UDF_FUNCTION_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" )
@ApiImplicitParam ( name = "id" , value = "RESOURCE_ID" , required = true , dataType = "Int" , example = "100" )
} )
@GetMapping ( value = "/udf-func/delete" )
@ResponseStatus ( HttpStatus . OK )
@ -680,7 +666,7 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "authorizedFile" , notes = "AUTHORIZED_FILE_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "userId" , value = "USER_ID" , required = true , dataType = "Int" , example = "100" )
@ApiImplicitParam ( name = "userId" , value = "USER_ID" , required = true , dataType = "Int" , example = "100" )
} )
@GetMapping ( value = "/authed-file" )
@ResponseStatus ( HttpStatus . CREATED )
@ -702,7 +688,7 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "authorizeResourceTree" , notes = "AUTHORIZE_RESOURCE_TREE_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "userId" , value = "USER_ID" , required = true , dataType = "Int" , example = "100" )
@ApiImplicitParam ( name = "userId" , value = "USER_ID" , required = true , dataType = "Int" , example = "100" )
} )
@GetMapping ( value = "/authorize-resource-tree" )
@ResponseStatus ( HttpStatus . CREATED )
@ -724,7 +710,7 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "unauthUDFFunc" , notes = "UNAUTHORIZED_UDF_FUNC_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "userId" , value = "USER_ID" , required = true , dataType = "Int" , example = "100" )
@ApiImplicitParam ( name = "userId" , value = "USER_ID" , required = true , dataType = "Int" , example = "100" )
} )
@GetMapping ( value = "/unauth-udf-func" )
@ResponseStatus ( HttpStatus . CREATED )
@ -747,7 +733,7 @@ public class ResourcesController extends BaseController {
* /
@ApiOperation ( value = "authUDFFunc" , notes = "AUTHORIZED_UDF_FUNC_NOTES" )
@ApiImplicitParams ( {
@ApiImplicitParam ( name = "userId" , value = "USER_ID" , required = true , dataType = "Int" , example = "100" )
@ApiImplicitParam ( name = "userId" , value = "USER_ID" , required = true , dataType = "Int" , example = "100" )
} )
@GetMapping ( value = "/authed-udf-func" )
@ResponseStatus ( HttpStatus . CREATED )