last refactoring ...
This commit is contained in:
@@ -17,12 +17,12 @@ namespace xFileService.Interfaces
|
||||
/// <summary>
|
||||
/// Attach Tag to Specified Model ...
|
||||
/// </summary>
|
||||
/// <param name="tag"></param>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="tag"></param>
|
||||
/// <returns></returns>
|
||||
Task<ActionResult> TagAttach(
|
||||
[FromQuery] string tag,
|
||||
[FromQuery] Guid id
|
||||
Task<ActionResult> AttachTag(
|
||||
[FromRoute] Guid id,
|
||||
[FromQuery] string tag
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
@@ -31,9 +31,9 @@ namespace xFileService.Interfaces
|
||||
/// <param name="tag"></param>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
Task<ActionResult> TagDetach(
|
||||
[FromQuery] string tag,
|
||||
[FromQuery] Guid id
|
||||
Task<ActionResult> DetachTag(
|
||||
[FromRoute] Guid id,
|
||||
[FromQuery] string tag
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
@@ -42,9 +42,9 @@ namespace xFileService.Interfaces
|
||||
/// <param name="tags"></param>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
Task<ActionResult> TagsAttach(
|
||||
[FromQuery] string tags,
|
||||
[FromQuery] Guid id
|
||||
Task<ActionResult> AttachTags(
|
||||
[FromRoute] Guid id,
|
||||
[FromQuery] string tags
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
@@ -53,9 +53,18 @@ namespace xFileService.Interfaces
|
||||
/// <param name="tags"></param>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
Task<ActionResult> TagsDetach(
|
||||
[FromQuery] string tags,
|
||||
[FromQuery] Guid id
|
||||
Task<ActionResult> DetachTags(
|
||||
[FromRoute] Guid id,
|
||||
[FromQuery] string tags
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// Retrieve Tags of Specified File ...
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
Task<ActionResult<IEnumerable<string>>> GetTags(
|
||||
[FromRoute] Guid id
|
||||
);
|
||||
#endregion
|
||||
|
||||
@@ -95,8 +104,8 @@ namespace xFileService.Interfaces
|
||||
/// <returns></returns>
|
||||
Task<ActionResult> Download(
|
||||
[FromRoute] string name
|
||||
);
|
||||
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// Upload Files ...
|
||||
/// </summary>
|
||||
@@ -104,8 +113,8 @@ namespace xFileService.Interfaces
|
||||
/// <returns></returns>
|
||||
Task<ActionResult<IEnumerable<XFileDto>>> Upload(
|
||||
[FromForm] IFormFileCollection files
|
||||
);
|
||||
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// Remove Specified Files ...
|
||||
/// </summary>
|
||||
@@ -113,7 +122,7 @@ namespace xFileService.Interfaces
|
||||
/// <returns></returns>
|
||||
Task<ActionResult<IEnumerable<Guid>>> Remove(
|
||||
[FromQuery] string ids
|
||||
);
|
||||
);
|
||||
#endregion
|
||||
|
||||
//
|
||||
@@ -126,7 +135,7 @@ namespace xFileService.Interfaces
|
||||
/// <returns></returns>
|
||||
Task<ActionResult<XFileDto>> Get(
|
||||
[FromRoute] Guid id
|
||||
);
|
||||
);
|
||||
|
||||
/// <summary>
|
||||
/// Get All Exists File Models ...
|
||||
@@ -166,7 +175,7 @@ namespace xFileService.Interfaces
|
||||
/// <returns></returns>
|
||||
Task<ActionResult<bool>> IsExists(
|
||||
[FromRoute] Guid id
|
||||
);
|
||||
);
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user