😎修改OA创建问题报告文件接口

This commit is contained in:
bairubing 2024-11-22 14:49:51 +08:00
parent 8bf19a9745
commit 8f0e3801a7

View File

@ -170,7 +170,6 @@ public class OaOpenInterfaceService : IDynamicApiController, ITransient
[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme + "," + SignatureAuthenticationDefaults.AuthenticationScheme)] [Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme + "," + SignatureAuthenticationDefaults.AuthenticationScheme)]
[ApiDescriptionSettings(Name = "OaCreateProcess"), HttpPost] [ApiDescriptionSettings(Name = "OaCreateProcess"), HttpPost]
[DisplayName("OA创建流程")] [DisplayName("OA创建流程")]
[AllowAnonymous]
public async Task<ManageResponse> OaCreateProcess(OaCreateProcessInput input) public async Task<ManageResponse> OaCreateProcess(OaCreateProcessInput input)
{ {
var response = new ManageResponse(); var response = new ManageResponse();
@ -377,14 +376,13 @@ public class OaOpenInterfaceService : IDynamicApiController, ITransient
[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme + "," + SignatureAuthenticationDefaults.AuthenticationScheme)] [Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme + "," + SignatureAuthenticationDefaults.AuthenticationScheme)]
[ApiDescriptionSettings(Name = "OaAddRelatedFiles"), HttpPost] [ApiDescriptionSettings(Name = "OaAddRelatedFiles"), HttpPost]
[DisplayName("OA创建问题报告文件")] [DisplayName("OA创建问题报告文件")]
[AllowAnonymous]
public async Task<ManageResponse> OaAddRelatedFiles(OaAddRelatedFilesInput input) public async Task<ManageResponse> OaAddRelatedFiles(OaAddRelatedFilesInput input)
{ {
var response = new ManageResponse(); var response = new ManageResponse();
if (input.object_id == 0||string.IsNullOrEmpty(input._System_objNBS)|| input.file_structure_id ==0 || string.IsNullOrEmpty(input.file_name)) if (input.object_id == 0||string.IsNullOrEmpty(input._System_objNBS)|| input.file_structure_id ==0 || string.IsNullOrEmpty(input.file_name))
{ {
response.Success = false; response.Success = true;
response.Message = "必填项不能为空"; response.Message = "必填项不能为空";
return response; return response;
} }