From d3c448dccead45eeb22b49218574997d13a5eb53 Mon Sep 17 00:00:00 2001 From: liyuli <138951227@qq.com> Date: Fri, 25 Jun 2021 10:56:16 +0800 Subject: [PATCH] fix: the annotation format --- collector/server/controller/profile/controller.go | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/collector/server/controller/profile/controller.go b/collector/server/controller/profile/controller.go index 206ee0b..e90f988 100644 --- a/collector/server/controller/profile/controller.go +++ b/collector/server/controller/profile/controller.go @@ -306,10 +306,7 @@ func downloadPath(bucket, endPoint, objectName string) string { const limit = int32(100) -/* - getProfileModelList - Batch get profile model from tableStore -*/ +// getProfileModelList batch get profile model from tableStore func getProfileModelList(tb *env.TablestoreClient, req MergeProfileReq) ([]*profilemodel.Model, error) { result, total, err := searchProfile(tb, req, 0) if err != nil { @@ -353,10 +350,7 @@ func getProfileModelList(tb *env.TablestoreClient, req MergeProfileReq) ([]*prof return result, nil } -/* - searchProfile - Search profile model from tableStore with request body -*/ +// searchProfile search profile model from tableStore with request body func searchProfile(tb *env.TablestoreClient, req MergeProfileReq, offset int32) ([]*profilemodel.Model, int64, error) { if len(req.Service) > 0 { @@ -452,10 +446,7 @@ func searchProfile(tb *env.TablestoreClient, req MergeProfileReq, offset int32) return result, getRangeResp.TotalCount, nil } -/* - unMarshalProfileRow - unmarshal information from tableStore row -*/ +// unMarshalProfileRow unmarshal information from tableStore row func unMarshalProfileRow(row *tablestore.Row) *profilemodel.Model { result := new(profilemodel.Model) ve := reflect.ValueOf(result).Elem()