backend for xcvr appview

add cursor

+7
+7
server/internal/handler/lexiconHandlers.go
··· 54 54 } 55 55 var gmo types.GetMessagesOut 56 56 gmo.Messages = messages 57 + if len(messages) != 0 { 58 + smv := messages[len(messages)] 59 + if int(smv.Signet.LrcId) > 2 { 60 + cursor := strconv.Itoa(int(smv.Signet.LrcId)) 61 + gmo.Cursor = &cursor 62 + } 63 + } 57 64 w.Header().Set("Content-Type", "application/json") 58 65 encoder := json.NewEncoder(w) 59 66 encoder.Encode(gmo)