XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.3.0
    • None
    • None

    Description

      Submarine server put QueryResult into JsonResponse, return to Submarine web front-end.

      QueryResult java class is template class,

      public class QueryResult<T> {
        private List<T> records;
        private long total;
      

      now, QueryResult.java has a problem; records is List<T>.
      1. every return JsonResponse, Submarine web front-end always received a list object.
      2. QueryResult param is <T>, but records is List<T>. The two are not uniform.

      So, I think we need to change

        private List<T> records;
      

      TO

        private T records;
      

      Attachments

        Activity

          People

            liuxun323 Xun Liu
            liuxun323 Xun Liu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: