CP.Api 异常处理 拦截器 输出拦截器 Generates an URI-friendly ID for the . E.g. "Get-Values-id_name" instead of "GetValues/{id}?name={name}" The . The ID as a string. Use this class to customize the Help Page. For example you can set a custom to supply the documentation or you can provide the samples for the requests/responses. The controller that will handle requests for the help page. Sets the documentation provider for help page. The . The documentation provider. Sets the objects that will be used by the formatters to produce sample requests/responses. The . The sample objects. Sets the sample request directly for the specified media type and action. The . The sample request. The media type. Name of the controller. Name of the action. Sets the sample request directly for the specified media type and action with parameters. The . The sample request. The media type. Name of the controller. Name of the action. The parameter names. Sets the sample request directly for the specified media type of the action. The . The sample response. The media type. Name of the controller. Name of the action. Sets the sample response directly for the specified media type of the action with specific parameters. The . The sample response. The media type. Name of the controller. Name of the action. The parameter names. Sets the sample directly for all actions with the specified media type. The . The sample. The media type. Sets the sample directly for all actions with the specified type and media type. The . The sample. The media type. The parameter type or return type of an action. Specifies the actual type of passed to the in an action. The help page will use this information to produce more accurate request samples. The . The type. Name of the controller. Name of the action. Specifies the actual type of passed to the in an action. The help page will use this information to produce more accurate request samples. The . The type. Name of the controller. Name of the action. The parameter names. Specifies the actual type of returned as part of the in an action. The help page will use this information to produce more accurate response samples. The . The type. Name of the controller. Name of the action. Specifies the actual type of returned as part of the in an action. The help page will use this information to produce more accurate response samples. The . The type. Name of the controller. Name of the action. The parameter names. Gets the help page sample generator. The . The help page sample generator. Sets the help page sample generator. The . The help page sample generator. Gets the model description generator. The configuration. The Gets the model that represents an API displayed on the help page. The model is initialized on the first call and cached for subsequent calls. The . The ID. An Describes a type model. Generates model descriptions for given types. Use this attribute to change the name of the generated for a type. The model that represents an API displayed on the help page. Initializes a new instance of the class. Gets or sets the that describes the API. Gets or sets the collection that describes the URI parameters for the API. Gets or sets the documentation for the request. Gets or sets the that describes the request body. Gets the request body parameter descriptions. Gets or sets the that describes the resource. Gets the resource property descriptions. Gets the sample requests associated with the API. Gets the sample responses associated with the API. Gets the error messages associated with this model. This class will generate the samples for the help page. Initializes a new instance of the class. Gets CLR types that are used as the content of or . Gets the objects that are used directly as samples for certain actions. Gets the objects that are serialized as samples by the supported formatters. Gets factories for the objects that the supported formatters will serialize as samples. Processed in order, stopping when the factory successfully returns a non- object. Collection includes just initially. Use SampleObjectFactories.Insert(0, func) to provide an override and SampleObjectFactories.Add(func) to provide a fallback. Gets the request body samples for a given . The . The samples keyed by media type. Gets the response body samples for a given . The . The samples keyed by media type. Gets the request or response body samples. The . The value indicating whether the sample is for a request or for a response. The samples keyed by media type. Search for samples that are provided directly through . Name of the controller. Name of the action. The parameter names. The CLR type. The formatter. The media type. The value indicating whether the sample is for a request or for a response. The sample that matches the parameters. Gets the sample object that will be serialized by the formatters. First, it will look at the . If no sample object is found, it will try to create one using (which wraps an ) and other factories in . The type. The sample object. Resolves the actual type of passed to the in an action. The . The type. Resolves the type of the action parameter or return value when or is used. The . Name of the controller. Name of the action. The parameter names. The value indicating whether the sample is for a request or a response. The formatters. Writes the sample object using formatter. The formatter. The value. The type. Type of the media. This is used to identify the place where the sample should be applied. Creates a new based on media type. The media type. Creates a new based on media type and CLR type. The media type. The CLR type. Creates a new based on , controller name, action name and parameter names. The . Name of the controller. Name of the action. The parameter names. Creates a new based on media type, , controller name, action name and parameter names. The media type. The . Name of the controller. Name of the action. The parameter names. Gets the name of the controller. The name of the controller. Gets the name of the action. The name of the action. Gets the media type. The media type. Gets the parameter names. Gets the . This represents an image sample on the help page. There's a display template named ImageSample associated with this class. Initializes a new instance of the class. The URL of an image. This represents an invalid sample on the help page. There's a display template named InvalidSample associated with this class. This class will create an object of a given type and populate it with sample data. Generates an object for a given type. The type needs to be public, have a public default constructor and settable public properties/fields. Currently it supports the following types: Simple types: , , , , , etc. Complex types: POCO types. Nullables: . Arrays: arrays of simple types or complex types. Key value pairs: Tuples: , , etc Dictionaries: or anything deriving from . Collections: , , , , , or anything deriving from or . Queryables: , . The type. An object of the given type. Indicates whether the sample is used for request or response This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class. A custom that reads the API documentation from an XML documentation file. Initializes a new instance of the class. The physical path to XML document. 获取地区 获取全部地区数据 获取地区彩种 统一输出方法 One 统一的返回模型 错误代码 0为成功 错误信息 统一输出方法 List 统一的返回模型 错误代码 0为成功 错误信息 清理缓存 彩种英文名称 手机站试机号开机号列表 彩种英文名称 条数 期数 type大于0的时候必须传入 0 默认 1 历史 获取所有彩种最新开奖号码 获取所有彩种最新开奖号码 0 全部数据 1 全国 2 地方 3 高频 获取n期开奖号 获取n期开奖号 英文名称 数量 高频为天如20190101 开始期数 结束期数 获取历史试机号今天参数sjh 历史试机号今天参数期数 获取指定期数开奖号 获取指定期数开奖号 英文名称 期数 不传或者为0获取最近期