58 lines
1.2 KiB
C#
58 lines
1.2 KiB
C#
using Server.System;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Server.Service
|
|
{
|
|
public class UpdateStory : AbstractService
|
|
{
|
|
private UpdateStoryReq req;
|
|
public override string Process()
|
|
{
|
|
return makeResp();
|
|
}
|
|
|
|
public override Protocol ProtocolValue() => Protocol.UpdateStory;
|
|
|
|
public override Req Requst(string json)
|
|
{
|
|
if (req.is_clear)
|
|
{
|
|
//클리어
|
|
}
|
|
else
|
|
{
|
|
//클리어 실패 로그용
|
|
}
|
|
req = JsonConvert.DeserializeObject<UpdateStoryReq>(json);
|
|
return req;
|
|
}
|
|
|
|
private string makeResp()
|
|
{
|
|
UpdateStoryResp resp = new UpdateStoryResp();
|
|
resp.status = 200;
|
|
return resp.ToJson();
|
|
}
|
|
|
|
|
|
}
|
|
|
|
public class UpdateStoryReq : Req
|
|
{
|
|
public long story_id;
|
|
public long chapter_id;
|
|
public bool is_clear;
|
|
public override bool IsReceivedAllField()
|
|
{
|
|
if(uuid == string.Empty || story_id == 0 || chapter_id == 0)
|
|
return false;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
public class UpdateStoryResp : Resp
|
|
{
|
|
|
|
}
|
|
}
|