liuxiaolong
2021-08-31 418bc6e7c106326796e2abaf04a8a5066daa57ee
fileAnalysis.go
@@ -3,7 +3,6 @@
import (
   "basic.com/pubsub/protomsg.git"
   "encoding/json"
   "errors"
   "strconv"
)
@@ -14,9 +13,6 @@
func (api FileAnalysisApi) Save(paramBody map[string]interface{}) bool {
   url := DATA_URL_PREFIX + "/fileAnalysis/save"
   netNode := getNetNode(url2Topic(Topic_Stack_Service, url))
   if netNode == nil {
      return false
   }
   client := NewClient(WithNodes(netNode))
   body,err := client.DoPostRequest(url,CONTENT_TYPE_JSON, paramBody,nil,nil)
   if err != nil {
@@ -34,9 +30,6 @@
func (api FileAnalysisApi) Show(id string) (bool,interface{}) {
   url := DATA_URL_PREFIX + "/fileAnalysis/show"
   netNode := getNetNode(url2Topic(Topic_Stack_Service, url))
   if netNode == nil {
      return false,nil
   }
   client := NewClient(WithNodes(netNode))
   paramQuery := map[string]string {
      "id":id,
@@ -57,9 +50,6 @@
func (api FileAnalysisApi) FindAllFile(fileName string,fType int, page int, size int) (bool,interface{}){
   url := DATA_URL_PREFIX + "/fileAnalysis/findAllFile"
   netNode := getNetNode(url2Topic(Topic_Stack_Service, url))
   if netNode == nil {
      return false,nil
   }
   client := NewClient(WithNodes(netNode))
   paramQuery := map[string]string {
      "fileName": fileName,
@@ -83,9 +73,6 @@
func (api FileAnalysisApi) GetAnalysisFiles() (files []protomsg.FileAnalysis,err error){
   url := DATA_URL_PREFIX + "/fileAnalysis/getAnalysisFiles"
   netNode := getNetNode(url2Topic(Topic_Stack_Service, url))
   if netNode == nil {
      return nil,errors.New("stack-service proc not found")
   }
   client := NewClient(WithNodes(netNode))
   body, err := client.DoGetRequest(url, nil, nil)
@@ -107,9 +94,6 @@
func (api FileAnalysisApi) FindByStackId(stackId string, typ int,name string, page int, size int) (bool,interface{}) {
   url := DATA_URL_PREFIX + "/fileAnalysis/findByStackId"
   netNode := getNetNode(url2Topic(Topic_Stack_Service, url))
   if netNode == nil {
      return false,nil
   }
   client := NewClient(WithNodes(netNode))
   paramBody := map[string]string {
      "stackId": stackId,
@@ -136,9 +120,6 @@
func (api FileAnalysisApi) GetFileAnalysisSet() (set protomsg.FileAnalysisSetting,err error) {
   url := DATA_URL_PREFIX + "/fileSetting/show"
   netNode := getNetNode(url2Topic(Topic_Stack_Service, url))
   if netNode == nil {
      return set,errors.New("stack-service proc not found")
   }
   client := NewClient(WithNodes(netNode))
   body, err := client.DoGetRequest(url, nil, nil)
@@ -160,9 +141,6 @@
func (api FileAnalysisApi) UpdateProgress(ids []string, progress int) bool {
   url := DATA_URL_PREFIX + "/fileAnalysis/updateProgress"
   netNode := getNetNode(url2Topic(Topic_Stack_Service, url))
   if netNode == nil {
      return false
   }
   client := NewClient(WithNodes(netNode))
   paramBody := map[string]interface{} {
      "ids":ids,
@@ -185,9 +163,6 @@
func (api FileAnalysisApi) ChangeEnable(enable bool) bool {
   url := DATA_URL_PREFIX + "/fileSetting/changeEnable"
   netNode := getNetNode(url2Topic(Topic_Stack_Service, url))
   if netNode == nil {
      return false
   }
   client := NewClient(WithNodes(netNode))
   paramBody := map[string]interface{} {
      "enable":enable,
@@ -209,9 +184,6 @@
func (api FileAnalysisApi) UpdateStatus(idArr []string, status int) bool {
   url := DATA_URL_PREFIX + "/fileAnalysis/updateStatus"
   netNode := getNetNode(url2Topic(Topic_Stack_Service, url))
   if netNode == nil {
      return false
   }
   client := NewClient(WithNodes(netNode))
   paramBody := map[string]interface{} {
      "ids":idArr,
@@ -234,9 +206,6 @@
func (api FileAnalysisApi) Delete(idArr []string) bool {
   url := DATA_URL_PREFIX + "/fileAnalysis/delete"
   netNode := getNetNode(url2Topic(Topic_Stack_Service, url))
   if netNode == nil {
      return false
   }
   client := NewClient(WithNodes(netNode))
   paramBody := map[string]interface{} {
      "ids":idArr,
@@ -258,9 +227,6 @@
func (api FileAnalysisApi) SortFile(id string,direct int) bool {
   url := DATA_URL_PREFIX + "/fileAnalysis/sortFile"
   netNode := getNetNode(url2Topic(Topic_Stack_Service, url))
   if netNode == nil {
      return false
   }
   client := NewClient(WithNodes(netNode))
   paramBody := map[string]interface{} {
      "id": id,
@@ -283,9 +249,6 @@
func (api FileAnalysisApi) Rename(id string,name string) bool {
   url := DATA_URL_PREFIX + "/fileAnalysis/rename"
   netNode := getNetNode(url2Topic(Topic_Stack_Service, url))
   if netNode == nil {
      return false
   }
   client := NewClient(WithNodes(netNode))
   paramBody := map[string]interface{} {
      "id": id,
@@ -308,9 +271,6 @@
func (api FileAnalysisApi) Move(id string,stackId string) bool {
   url := DATA_URL_PREFIX + "/fileAnalysis/move"
   netNode := getNetNode(url2Topic(Topic_Stack_Service, url))
   if netNode == nil {
      return false
   }
   client := NewClient(WithNodes(netNode))
   paramBody := map[string]interface{} {
      "id": id,
@@ -333,9 +293,6 @@
func (api FileAnalysisApi) Copy(id string,stackIds []string) bool {
   url := DATA_URL_PREFIX + "/fileAnalysis/copy"
   netNode := getNetNode(url2Topic(Topic_Stack_Service, url))
   if netNode == nil {
      return false
   }
   client := NewClient(WithNodes(netNode))
   paramBody := map[string]interface{} {
      "id": id,