Asset Library 기능 추가
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
@@ -127,7 +127,7 @@ namespace AssetsUVC.Network
|
||||
/// public void OnDocumentChanged(string documentId, string content)
|
||||
/// {
|
||||
/// // 문서 변경 후 2초 동안 추가 변경이 없으면 저장
|
||||
/// var body = $"{{\"id\": \"{documentId}\", \"content\": \"{content}\"}}";
|
||||
/// var body = $"{{\"Id\": \"{documentId}\", \"content\": \"{content}\"}}";
|
||||
///
|
||||
/// autoSaveRequester.Request<SaveResult>(
|
||||
/// 2000,
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace UVC.Network
|
||||
/// {
|
||||
/// var body = new Dictionary<string, object>
|
||||
/// {
|
||||
/// { "id", productId },
|
||||
/// { "Id", productId },
|
||||
/// { "name", name },
|
||||
/// { "price", price }
|
||||
/// };
|
||||
@@ -92,7 +92,7 @@ namespace UVC.Network
|
||||
/// // DELETE 요청 예제
|
||||
/// public async UniTask<bool> DeleteResourceAsync(string resourceId)
|
||||
/// {
|
||||
/// string jsonBody = $"{{\"id\": \"{resourceId}\"}}";
|
||||
/// string jsonBody = $"{{\"Id\": \"{resourceId}\"}}";
|
||||
///
|
||||
/// return await HttpRequester.Request<bool>("/api/resources", "delete", jsonBody);
|
||||
/// }
|
||||
@@ -155,7 +155,7 @@ namespace UVC.Network
|
||||
/// // 사용자 정의 JSON 문자열로 요청하는 예제
|
||||
/// public async UniTask<ProductResponse> UpdateProductAsync(int productId, string productName)
|
||||
/// {
|
||||
/// string jsonBody = $"{{\"id\": {productId}, \"name\": \"{productName}\"}}";
|
||||
/// string jsonBody = $"{{\"Id\": {productId}, \"name\": \"{productName}\"}}";
|
||||
///
|
||||
/// return await HttpRequester.RequestPost<ProductResponse>("/api/products/update", jsonBody);
|
||||
/// }
|
||||
@@ -193,7 +193,7 @@ namespace UVC.Network
|
||||
/// [Serializable]
|
||||
/// public class Product
|
||||
/// {
|
||||
/// public int id;
|
||||
/// public int Id;
|
||||
/// public string name;
|
||||
/// public float price;
|
||||
/// }
|
||||
|
||||
Reference in New Issue
Block a user