类 OTSSearchResponse


  • public class OTSSearchResponse
    extends Object
    OTS搜索响应
    作者:
    frankcl
    • 字段详细资料

      • status

        public boolean status
      • totalCount

        public Long totalCount
      • message

        public String message
      • records

        public xin.manong.weapon.base.record.KVRecords records
    • 构造器详细资料

      • OTSSearchResponse

        public OTSSearchResponse()
    • 方法详细资料

      • buildError

        public static OTSSearchResponse buildError​(String message)
        构建错误响应
        参数:
        message - 错误信息
        返回:
        错误响应对象
      • buildOK

        public static OTSSearchResponse buildOK​(xin.manong.weapon.base.record.KVRecords records,
                                                Long totalCount)
        构建成功响应
        参数:
        records - 数据列表
        totalCount - 总数
        返回:
        成功响应对象