|
|
@@ -22,6 +22,8 @@ import (
|
|
|
"dashoo.cn/business2/items"
|
|
|
"dashoo.cn/business2/userRole"
|
|
|
"dashoo.cn/utils"
|
|
|
+ . "github.com/linxGnu/goseaweedfs"
|
|
|
+
|
|
|
)
|
|
|
|
|
|
type OilContractController struct {
|
|
|
@@ -436,6 +438,482 @@ func (this *OilContractController) GetEntityList() {
|
|
|
this.ServeJSON()
|
|
|
}
|
|
|
|
|
|
+// @Title get 导出列表
|
|
|
+// @Description
|
|
|
+// @Success 200 {object}
|
|
|
+// @router /exportList [get]
|
|
|
+func (this *OilContractController) ExportList() {
|
|
|
+
|
|
|
+ //获取分页信息
|
|
|
+ page := this.GetPageInfoForm()
|
|
|
+ where := " 1=1 "
|
|
|
+ orderby := "Id"
|
|
|
+ asc := false
|
|
|
+ Order := this.GetString("Order")
|
|
|
+ Prop := this.GetString("Prop")
|
|
|
+ if Order != "" && Prop != "" {
|
|
|
+ orderby = Prop
|
|
|
+ if Order == "asc" {
|
|
|
+ asc = true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ Id := this.GetString("Id")
|
|
|
+ SupplierId := this.GetString("SupplierId")
|
|
|
+ SupplierName := this.GetString("SupplierName")
|
|
|
+ ImportSupplierName := this.GetString("ImportSupplierName")
|
|
|
+ ImportUnitName := this.GetString("ImportUnitName")
|
|
|
+ Status := this.GetString("Status")
|
|
|
+ SettleStatus := this.GetString("SettleStatus")
|
|
|
+ ProjectName := this.GetString("ProjectName")
|
|
|
+ ContractNo := this.GetString("ContractNo")
|
|
|
+ ProjectPlace := this.GetString("ProjectPlace")
|
|
|
+ ProjectOwner := this.GetString("ProjectOwner")
|
|
|
+ Telephone := this.GetString("Telephone")
|
|
|
+ ProjectType := this.GetString("ProjectType")
|
|
|
+ ContractMode := this.GetString("ContractMode")
|
|
|
+ Amount := this.GetString("Amount")
|
|
|
+ ContractPeriod := this.GetString("ContractPeriod")
|
|
|
+ EndDate := this.GetString("EndDate")
|
|
|
+ StartDate := this.GetString("StartDate")
|
|
|
+ ConstructionUnit := this.GetString("ConstructionUnit")
|
|
|
+ ConstructionOwner := this.GetString("ConstructionOwner")
|
|
|
+ ConstructionTelphone := this.GetString("ConstructionTelphone")
|
|
|
+ BuildUnit := this.GetString("BuildUnit")
|
|
|
+ BuildOwner := this.GetString("BuildOwner")
|
|
|
+ BuildTelphone := this.GetString("BuildTelphone")
|
|
|
+ SuperviseUnit := this.GetString("SuperviseUnit")
|
|
|
+ SuperviseOwner := this.GetString("SuperviseOwner")
|
|
|
+ SuperviseTelphone := this.GetString("SuperviseTelphone")
|
|
|
+ QualityUnit := this.GetString("QualityUnit")
|
|
|
+ QualityOwner := this.GetString("QualityOwner")
|
|
|
+ QualityTelphone := this.GetString("QualityTelphone")
|
|
|
+ Remark := this.GetString("Remark")
|
|
|
+ IsDelete := this.GetString("IsDelete")
|
|
|
+ CreateOn := this.GetString("CreateOn")
|
|
|
+ CreateOn1 := this.GetString("CreateOn1")
|
|
|
+ CreateUserId := this.GetString("CreateUserId")
|
|
|
+ CreateBy := this.GetString("CreateBy")
|
|
|
+ ModifiedOn := this.GetString("ModifiedOn")
|
|
|
+ ModifiedUserId := this.GetString("ModifiedUserId")
|
|
|
+ ModifiedBy := this.GetString("ModifiedBy")
|
|
|
+ ContractName := this.GetString("ContractName")
|
|
|
+ ContractSonClass := this.GetString("ContractSonClass")
|
|
|
+ SmallClass := this.GetString("SmallClass")
|
|
|
+ SignedDate := this.GetString("SignedDate")
|
|
|
+ People := this.GetString("People")
|
|
|
+ Number := this.GetString("Number")
|
|
|
+ ChooseWay := this.GetString("ChooseWay")
|
|
|
+ ContractMark := this.GetString("ContractMark")
|
|
|
+ Currency := this.GetString("Currency")
|
|
|
+ BudgetAmount := this.GetString("BudgetAmount")
|
|
|
+ PerformAmount := this.GetString("PerformAmount")
|
|
|
+ IsInternal := this.GetString("IsInternal")
|
|
|
+ IsForeign := this.GetString("IsForeign")
|
|
|
+ IsDeal := this.GetString("IsDeal")
|
|
|
+ MoneyFlows := this.GetString("MoneyFlows")
|
|
|
+ MoneyChannel := this.GetString("MoneyChannel")
|
|
|
+ MoneyChannelSon := this.GetString("MoneyChannelSon")
|
|
|
+ MoneyChannelSmall := this.GetString("MoneyChannelSmall")
|
|
|
+ SingUnit := this.GetString("SingUnit")
|
|
|
+ Place := this.GetString("Place")
|
|
|
+ DisputeResolution := this.GetString("DisputeResolution")
|
|
|
+ SubmitDate := this.GetString("SubmitDate")
|
|
|
+ SealName := this.GetString("SealName")
|
|
|
+ PoNumber := this.GetString("PoNumber")
|
|
|
+ SubPackage := this.GetString("SubPackage")
|
|
|
+ ImportStatus := this.GetString("ImportStatus")
|
|
|
+ ContractClass := this.GetString("ContractClass")
|
|
|
+ ClassName := this.GetString("ClassName")
|
|
|
+ SecondUnit := this.GetString("SecondUnit")
|
|
|
+ ImportSecondUnit := this.GetString("ImportSecondUnit")
|
|
|
+
|
|
|
+ if Id != "" {
|
|
|
+ where = where + " and Id like '%" + Id + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ContractClass != "" {
|
|
|
+ where = where + " and ContractClass='" + ContractClass + "' "
|
|
|
+ }
|
|
|
+
|
|
|
+ if SecondUnit != "" {
|
|
|
+ where = where + " and SecondUnit=" + SecondUnit + " "
|
|
|
+ }
|
|
|
+
|
|
|
+ if ImportSecondUnit != "" {
|
|
|
+ where = where + " and SecondUnit=" + ImportSecondUnit + " "
|
|
|
+ }
|
|
|
+
|
|
|
+ if ClassName != "" {
|
|
|
+ where = where + " and ClassName='" + ClassName + "' "
|
|
|
+ }
|
|
|
+
|
|
|
+ if SupplierId != "" {
|
|
|
+ where = where + " and SupplierId like '%" + SupplierId + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if SupplierName != "" {
|
|
|
+ where = where + " and SupplierName like '%" + SupplierName + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ImportSupplierName != "" {
|
|
|
+ where = where + " and ImportSupplierName like '%" + ImportSupplierName + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ImportUnitName != "" {
|
|
|
+ where = where + " and ImportSecondUnit like '%" + ImportUnitName + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if Status != "" {
|
|
|
+ where = where + " and Status=" + Status + " "
|
|
|
+ }
|
|
|
+
|
|
|
+ if SettleStatus != "" {
|
|
|
+ where = where + " and SettleStatus='" + SettleStatus + "' "
|
|
|
+ }
|
|
|
+
|
|
|
+ if ProjectName != "" {
|
|
|
+ where = where + " and ProjectName like '%" + ProjectName + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ContractNo != "" {
|
|
|
+ where = where + " and ContractNo like '%" + ContractNo + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ProjectPlace != "" {
|
|
|
+ where = where + " and ProjectPlace like '%" + ProjectPlace + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ProjectOwner != "" {
|
|
|
+ where = where + " and ProjectOwner like '%" + ProjectOwner + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if Telephone != "" {
|
|
|
+ where = where + " and Telephone like '%" + Telephone + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ProjectType != "" {
|
|
|
+ where = where + " and ProjectType like '%" + ProjectType + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ContractMode != "" {
|
|
|
+ where = where + " and ContractMode like '%" + ContractMode + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if Amount != "" {
|
|
|
+ where = where + " and Amount like '%" + Amount + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ContractPeriod != "" {
|
|
|
+ where = where + " and ContractPeriod like '%" + ContractPeriod + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if EndDate != "" {
|
|
|
+ where = where + " and EndDate like '%" + EndDate + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if StartDate != "" {
|
|
|
+ where = where + " and StartDate like '%" + StartDate + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ConstructionUnit != "" {
|
|
|
+ where = where + " and ConstructionUnit like '%" + ConstructionUnit + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ConstructionOwner != "" {
|
|
|
+ where = where + " and ConstructionOwner like '%" + ConstructionOwner + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ConstructionTelphone != "" {
|
|
|
+ where = where + " and ConstructionTelphone like '%" + ConstructionTelphone + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if BuildUnit != "" {
|
|
|
+ where = where + " and BuildUnit like '%" + BuildUnit + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if BuildOwner != "" {
|
|
|
+ where = where + " and BuildOwner like '%" + BuildOwner + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if BuildTelphone != "" {
|
|
|
+ where = where + " and BuildTelphone like '%" + BuildTelphone + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if SuperviseUnit != "" {
|
|
|
+ where = where + " and SuperviseUnit like '%" + SuperviseUnit + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if SuperviseOwner != "" {
|
|
|
+ where = where + " and SuperviseOwner like '%" + SuperviseOwner + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if SuperviseTelphone != "" {
|
|
|
+ where = where + " and SuperviseTelphone like '%" + SuperviseTelphone + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if QualityUnit != "" {
|
|
|
+ where = where + " and QualityUnit like '%" + QualityUnit + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if QualityOwner != "" {
|
|
|
+ where = where + " and QualityOwner like '%" + QualityOwner + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if QualityTelphone != "" {
|
|
|
+ where = where + " and QualityTelphone like '%" + QualityTelphone + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if Remark != "" {
|
|
|
+ where = where + " and Remark like '%" + Remark + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if IsDelete != "" {
|
|
|
+ where = where + " and IsDelete like '%" + IsDelete + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ //if CreateOn != "" {
|
|
|
+ // where = where + " and CreateOn like '%" + CreateOn + "%'"
|
|
|
+ //}
|
|
|
+
|
|
|
+ if CreateUserId != "" {
|
|
|
+ where = where + " and CreateUserId like '%" + CreateUserId + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if CreateBy != "" {
|
|
|
+ where = where + " and CreateBy like '%" + CreateBy + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ModifiedOn != "" {
|
|
|
+ where = where + " and ModifiedOn like '%" + ModifiedOn + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ModifiedUserId != "" {
|
|
|
+ where = where + " and ModifiedUserId like '%" + ModifiedUserId + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ModifiedBy != "" {
|
|
|
+ where = where + " and ModifiedBy like '%" + ModifiedBy + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if CreateOn != "" {
|
|
|
+ dates := strings.Split(CreateOn, ",")
|
|
|
+ if len(dates) == 2 {
|
|
|
+ minDate := dates[0]
|
|
|
+ maxDate := dates[1]
|
|
|
+ where = where + " and CreateOn>='" + minDate + "' and CreateOn<='" + maxDate + "'"
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if CreateOn1 != "" {
|
|
|
+ dates := strings.Split(CreateOn1, ",")
|
|
|
+ if len(dates) == 2 {
|
|
|
+ minDate := dates[0]
|
|
|
+ maxDate := dates[1]
|
|
|
+ where = where + " and StartDate>='" + minDate + "' and EndDate<='" + maxDate + "'"
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if SubPackage != "" {
|
|
|
+ where = where + " and SubPackage like '%" + SubPackage + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ContractName != "" {
|
|
|
+ where = where + " and ContractName like '%" + ContractName + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ContractSonClass != "" {
|
|
|
+ where = where + " and ContractSonClass like '%" + ContractSonClass + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if SmallClass != "" {
|
|
|
+ where = where + " and SmallClass like '%" + SmallClass + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if People != "" {
|
|
|
+ where = where + " and People like '%" + People + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if Number != "" {
|
|
|
+ where = where + " and Number like '%" + Number + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ChooseWay != "" {
|
|
|
+ where = where + " and ChooseWay like '%" + ChooseWay + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ContractMark != "" {
|
|
|
+ where = where + " and ContractMark like '%" + ContractMark + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if Currency != "" {
|
|
|
+ where = where + " and Currency like '%" + Currency + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if BudgetAmount != "" {
|
|
|
+ where = where + " and BudgetAmount like '%" + BudgetAmount + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if PerformAmount != "" {
|
|
|
+ where = where + " and PerformAmount like '%" + PerformAmount + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if IsInternal != "" {
|
|
|
+ where = where + " and IsInternal like '%" + IsInternal + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if IsForeign != "" {
|
|
|
+ where = where + " and IsForeign like '%" + IsForeign + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if IsDeal != "" {
|
|
|
+ where = where + " and IsDeal like '%" + IsDeal + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if MoneyFlows != "" {
|
|
|
+ where = where + " and MoneyFlows like '%" + MoneyFlows + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if MoneyChannel != "" {
|
|
|
+ where = where + " and MoneyChannel like '%" + MoneyChannel + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if MoneyChannelSon != "" {
|
|
|
+ where = where + " and MoneyChannelSon like '%" + MoneyChannelSon + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if MoneyChannelSmall != "" {
|
|
|
+ where = where + " and MoneyChannelSmall like '%" + MoneyChannelSmall + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if SingUnit != "" {
|
|
|
+ where = where + " and SingUnit like '%" + SingUnit + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if Place != "" {
|
|
|
+ where = where + " and Place like '%" + Place + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if DisputeResolution != "" {
|
|
|
+ where = where + " and DisputeResolution like '%" + DisputeResolution + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if SubmitDate != "" {
|
|
|
+ where = where + " and SubmitDate like '%" + SubmitDate + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if SealName != "" {
|
|
|
+ where = where + " and SealName like '%" + SealName + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if PoNumber != "" {
|
|
|
+ where = where + " and PoNumber like '%" + PoNumber + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if SignedDate != "" {
|
|
|
+ where = where + " and PoNumber like '%" + SignedDate + "%'"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ImportStatus != "" {
|
|
|
+ where = where + " and ImportStatus = " + ImportStatus
|
|
|
+ } else {
|
|
|
+ where = where + " and ImportStatus != 0"
|
|
|
+ }
|
|
|
+
|
|
|
+ // 企管法规处可看所有合同, 获取企管法规处人员
|
|
|
+ var settingReg auditsetting.Base_OilAuditSetting
|
|
|
+ orgSvc := organize.GetOrganizeService(utils.DBE)
|
|
|
+ wherePRegAudit := "AuditStepCode='PROF_REGULATION'"
|
|
|
+ orgSvc.GetEntity(&settingReg, wherePRegAudit) // PROF_AUDIT
|
|
|
+ res1 := orgSvc.UserInRoleById(this.User.Id, strconv.Itoa(settingReg.RoleId))
|
|
|
+ // 所有业务处室分办单位可查看所有合同 TODO 待确认
|
|
|
+ var settingProf auditsetting.Base_OilAuditSetting
|
|
|
+ wherePAudit := "AuditStepCode='PROF_RECE'"
|
|
|
+ orgSvc.GetEntity(&settingProf, wherePAudit) // PROF_AUDIT
|
|
|
+ res2 := orgSvc.UserInRoleById(this.User.Id, strconv.Itoa(settingProf.RoleId))
|
|
|
+ if !res1 && !res2 {
|
|
|
+ where = where + " and SecondUnit= " + strconv.Itoa(this.User.UnitId)
|
|
|
+ }
|
|
|
+
|
|
|
+ svc := contract.GetOilContractService(utils.DBE)
|
|
|
+ var list []contract.OilContract
|
|
|
+ svc.GetPagingEntitiesWithOrderBytbl("", page.CurrentPage, page.Size, orderby, asc, &list, where)
|
|
|
+
|
|
|
+ fileTitle := "合同列表"
|
|
|
+ //自定义显示列
|
|
|
+ title := strings.Split("企业名称,项目建设单位,合同名称,合同编号,合同类别,企业类别,履行状态,项目负责人,合同总金额,履行期限(始),履行期限(止),备注", ",")
|
|
|
+
|
|
|
+ f := xlsx.NewFile()
|
|
|
+ sheet, _ := f.AddSheet(fileTitle)
|
|
|
+ row := sheet.AddRow()
|
|
|
+ row.WriteSlice(&title, -1)
|
|
|
+
|
|
|
+ // 与表头顺序一一对应 ↓
|
|
|
+ nilTime := time.Time{}
|
|
|
+ for _, item := range list {
|
|
|
+ var dataArr []string
|
|
|
+ dataArr = append(dataArr, item.SupplierName)
|
|
|
+ dataArr = append(dataArr, item.SecondUnitName)
|
|
|
+ dataArr = append(dataArr, item.ContractName)
|
|
|
+ dataArr = append(dataArr, item.ContractNo)
|
|
|
+ dataArr = append(dataArr, item.ClassName)
|
|
|
+ // 企业类别
|
|
|
+ if item.ContractClass == "01" {
|
|
|
+ dataArr = append(dataArr, "供应商")
|
|
|
+ } else if item.ContractClass == "02" {
|
|
|
+ dataArr = append(dataArr, "承包商")
|
|
|
+ } else if item.ContractClass == "03" {
|
|
|
+ dataArr = append(dataArr, "服务商")
|
|
|
+ } else {
|
|
|
+ dataArr = append(dataArr, "")
|
|
|
+ }
|
|
|
+ if item.Status == 1 {
|
|
|
+ dataArr = append(dataArr, "未履行")
|
|
|
+ } else if item.Status == 2 {
|
|
|
+ dataArr = append(dataArr, "履行中")
|
|
|
+ } else if item.Status == 3 {
|
|
|
+ dataArr = append(dataArr, "已完结")
|
|
|
+ } else {
|
|
|
+ dataArr = append(dataArr, "")
|
|
|
+ }
|
|
|
+ dataArr = append(dataArr, item.ProjectOwner)
|
|
|
+ dataArr = append(dataArr, item.Amount)
|
|
|
+
|
|
|
+ if item.StartDate == nilTime {
|
|
|
+ dataArr = append(dataArr, "")
|
|
|
+ } else {
|
|
|
+ dataArr = append(dataArr, item.StartDate.Format("2006-01-02 15:04:05"))
|
|
|
+ }
|
|
|
+ if item.EndDate == nilTime {
|
|
|
+ dataArr = append(dataArr, "")
|
|
|
+ } else {
|
|
|
+ dataArr = append(dataArr, item.EndDate.Format("2006-01-02 15:04:05"))
|
|
|
+ }
|
|
|
+ dataArr = append(dataArr, item.Remark)
|
|
|
+
|
|
|
+ row := sheet.AddRow()
|
|
|
+ row.WriteSlice(&dataArr, -1)
|
|
|
+ }
|
|
|
+ for c, cl := 0, len(sheet.Cols); c < cl; c++ {
|
|
|
+ sheet.Cols[c].Width = 20
|
|
|
+ }
|
|
|
+ dir := "static/file/excel/report/" + this.GetAccode()
|
|
|
+ SaveDirectory(dir)
|
|
|
+ path := dir + "/" + "contract_export_" + utils.TimeFormat(time.Now(), "20060102") + fileTitle + ".xlsx"
|
|
|
+ f.Save(path)
|
|
|
+ var sw *Seaweed
|
|
|
+ var filer []string
|
|
|
+ if _filer := os.Getenv("GOSWFS_FILER_URL"); _filer != "" {
|
|
|
+ filer = []string{_filer}
|
|
|
+ }
|
|
|
+ sw = NewSeaweed("http", utils.Cfg.MustValue("file", "upFileHost"), filer, 2*1024*1024, 5*time.Minute)
|
|
|
+ _, _, fID, _ := sw.UploadFile(path, "", "")
|
|
|
+
|
|
|
+ retDocUrl := utils.Cfg.MustValue("file", "downFileHost") + "/" + fID
|
|
|
+ os.Remove(path)
|
|
|
+ this.Data["json"] = retDocUrl
|
|
|
+ this.ServeJSON()
|
|
|
+}
|
|
|
+
|
|
|
// @Title 获取字典列表
|
|
|
// @Description get user by token
|
|
|
// @Success 200 {object} map[string]interface{}
|