Skip to content

Commit bb59d30

Browse files
committed
add IsAccurate flag for GetLogrequest
1 parent 3adb741 commit bb59d30

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

model.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ type GetLogRequest struct {
2121
FromNsPart int32 `json:"fromNs"`
2222
ToNsPart int32 `json:"toNs"`
2323
NeedHighlight bool `json:"highlight"`
24+
IsAccurate bool `json:"accurate"`
2425
}
2526

2627
func (glr *GetLogRequest) ToURLParams() url.Values {
@@ -36,6 +37,8 @@ func (glr *GetLogRequest) ToURLParams() url.Values {
3637
urlVal.Add("query", glr.Query)
3738
urlVal.Add("fromNs", strconv.Itoa(int(glr.FromNsPart)))
3839
urlVal.Add("toNs", strconv.Itoa(int(glr.ToNsPart)))
40+
urlVal.Add("highlight", strconv.FormatBool(glr.NeedHighlight))
41+
urlVal.Add("accurate", strconv.FormatBool(glr.IsAccurate))
3942
return urlVal
4043
}
4144

0 commit comments

Comments
 (0)