Closed dragon0170 closed 5 years ago
Working branch
https://github.com/paust-team/paust-db/issues/29#issuecomment-448843741 오타네요ㅋㅋㅋㅋ type의 값을 변경한다는 게 실수로 data를 변경했네요.
type BetweenQuery struct {
Start int64 `json:"start"`
End int64 `json:"end"`
UserKey []byte `json:"userKey"`
Type string `json:"type"`
}
1. user key, type 명시
{
"start":1544772882435375000,
"end":1544772967331462000,
"userKey":"Krc92XkJ+LhkDMO+Qe1utVg1KNGbXdhri3Ol9u5dIAY97w88jgyruQkiMMmN9+hOXqzkR7MZBLIhy7ljYpgNoQ==",
"type":"cpu"
}
2. user key 명시
{
"start":1544772882435375000,
"end":1544772967331462000,
"userKey":"Krc92XkJ+LhkDMO+Qe1utVg1KNGbXdhri3Ol9u5dIAY97w88jgyruQkiMMmN9+hOXqzkR7MZBLIhy7ljYpgNoQ==",
"type":""
}
3. type 명시
{
"start":1544772882435375000,
"end":1544772967331462000,
"userKey":null
"type":"cpu"
}
4. 시간만 명시
{
"start":1544772882435375000,
"end":1544772967331462000,
"userKey":null,
"type":""
}
https://github.com/paust-team/paust-db/issues/22#issuecomment-448918493 의 영향으로 아래와 같이 query struct 통일
type DataQuery struct {
Start int64 `json:"start"`
End int64 `json:"end"`
UserKey []byte `json:"userKey"`
Type string `json:"type"`
}
Reference
24
Between query 설계 초안
/between
1. user key, type 명시
2. user key 명시
3. type 명시
4. 시간만 명시