sqlite的api,便于内部使用
liuxiaolong
2020-02-28 9b16fecd94fa5248eba825d81050c7de8eca77e3
add page and size
1个文件已修改
4 ■■■ 已修改文件
fileAnalysis.go 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
fileAnalysis.go
@@ -98,12 +98,14 @@
    return files, err
}
func (api FileAnalysisApi) FindByStackId(stackId string, typ int) (list []protomsg.FileAnalysis,err error) {
func (api FileAnalysisApi) FindByStackId(stackId string, typ int, page int, size int) (list []protomsg.FileAnalysis,err error) {
    url := api.getBasicUrl() + DATA_URL_PREFIX + "/fileAnalysis/findByStackId"
    client := NewClient()
    paramBody := map[string]string {
        "stackId": stackId,
        "type": strconv.Itoa(typ),
        "page": strconv.Itoa(page),
        "size": strconv.Itoa(size),
    }
    body, err := client.DoGetRequest(url, paramBody, nil)
    if err != nil {