27 lines
548 B
C#
27 lines
548 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Web.Http;
|
|
|
|
namespace ChatRoomServer.Www.Areas.Api.Controllers
|
|
{
|
|
[RoutePrefix("api/stat")]
|
|
public class StatController : ApiController
|
|
{
|
|
/// <summary>
|
|
/// 更新在线数
|
|
/// </summary>
|
|
/// <param name="roomid"></param>
|
|
/// <param name="count"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
[Route("update/{roomid}")]
|
|
public bool UpdateRoomOnlineCount(string roomid, int count)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|