File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,10 @@ func (a *AutoCodeTemplateApi) AddFunc(c *gin.Context) {
100100	}
101101	var  tempMap  map [string ]string 
102102	if  info .IsPreview  {
103+ 		info .Router  =  "填充router" 
104+ 		info .FuncName  =  "填充funcName" 
105+ 		info .Method  =  "填充method" 
106+ 		info .Description  =  "填充description" 
103107		tempMap , err  =  autoCodeTemplateService .GetApiAndServer (info )
104108	} else  {
105109		err  =  autoCodeTemplateService .AddFunc (info )
Original file line number Diff line number Diff line change 7676const { { $element   } 
7777    { {- end } 
7878
79+ // init方法中增加如下调用
80+ 
81+ { {- range $index  , $element   := .DictTypes } 
82+     { { $element   } { {$element  } 
83+ { {- end } 
84+ 
7985// 基础formData结构增加如下字段
8086{ {- range .Fields} 
8187          { {- if  .Form} 
Original file line number Diff line number Diff line change 7676const {{ $element }}Options = ref([])
7777    {{- end }}
7878
79+ // init方法中增加如下调用
80+ 
81+ {{- range $index, $element := .DictTypes }}
82+     {{ $element }}Options.value = await getDictFunc('{{$element}}')
83+ {{- end }}
84+ 
7985// 基础formData结构增加如下字段
8086{{- range .Fields}}
8187          {{- if .Form}}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments