50 lines
1.9 KiB
C#
50 lines
1.9 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.ServiceModel;
|
||
using System.ServiceModel.Web;
|
||
|
||
namespace ZXDService
|
||
{
|
||
// 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IExamService”。
|
||
[ServiceContract]
|
||
public interface IExamService
|
||
{
|
||
//[OperationContract]
|
||
//void DoWork();
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
RequestFormat = WebMessageFormat.Json,
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "Gen?type={type}&appid={appid}&appuserid={appuserid}")]
|
||
ExamResult Gen(int type, string appid, string appuserid);
|
||
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "POST",
|
||
RequestFormat = WebMessageFormat.Json,
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "Save")]
|
||
JsonResult<string> Save(CRM.Core.BLL.Application.Exam.AnswerDto dto);
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
RequestFormat = WebMessageFormat.Json,
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "List?appid={appid}&appuserid={appuserid}&type={type}&sTime={sTime}&eTime={eTime}&page={page}&limit={limit}")]
|
||
PageResult<List<ExamPaperView>> List(string appid, string appuserid, int type, DateTime sTime, DateTime eTime, int page, int limit);
|
||
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
RequestFormat = WebMessageFormat.Json,
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "Show?paperId={paperId}")]
|
||
ExamResult Show(int paperId);
|
||
|
||
}
|
||
}
|