鍍金池/ 問答/Java  HTML/ url時間查詢字段描述

url時間查詢字段描述

一個需求 找到在05-01 05-24 內(nèi)創(chuàng)建的用戶 最后登錄大于05-11 一個時間字段一個比較類型 該如何映射到url上 我目前是這么寫 http://localhost/user?create_... 創(chuàng)建時間字段是范圍 創(chuàng)建時間是> < 該如何優(yōu)雅的表達(dá) 我想到的是

http://localhost/user?create_at=1527094100472,1527094100472&login_at=1527094100472,

代表創(chuàng)建時間內(nèi)登錄時間大于大于

http://localhost/user?create_at=1527094100472,1527094100472&login_at=,1527094100472

代表創(chuàng)建時間內(nèi)登錄時間小于

各位大佬是怎么解決的

回答
編輯回答
陌南塵

created_at_low=
created_at_up=

1個字段,還想怎么優(yōu)雅

2017年7月29日 12:50
編輯回答
乞許

可能這樣會優(yōu)雅一點(diǎn)點(diǎn)?

router

/user/time/range/:start/:end

demo

http://localhost/user/time/range/1527094100472/1527094100472
2017年2月20日 04:13