You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
893 B

using System.Collections.Generic;
using System.ServiceModel;
namespace ConsoleTest.PTZApi
{
[ServiceContract]
public interface IOperateService<T> where T : class
{
[OperationContract]
bool Add(T model);
[OperationContract]
bool Update(T model);
[OperationContract]
bool Delete(T model);
[OperationContract]
T Find(object key);
[OperationContract]
IList<T> FindAll();
}
[ServiceContract]
public interface ICameraService : IOperateService<CameraModel>
{
}
[ServiceContract]
public interface ICruiseCameraService : IOperateService<CameraModel>
{
}
[ServiceContract]
public interface ICameraModelService : IOperateService<CameraModel>
{
}
/// <summary>
/// PTZ Api 接口
/// </summary>
public interface IPTZApi
{
}
}