packagebalanceimport("net/http"goku_handler"github.com/eolinker/goku-api-gateway/goku-handler")constoperationBalance="balanceManagement"//Handlers handlerstypeHandlersstruct{}//Handlers handlersfunc(h*Handlers)Handlers(factory*goku_handler.AccountHandlerFactory)map[string]http.Handler{returnmap[string]http.Handler{"/add":factory.NewAccountHandleFunction(operationBalance,true,AddBalance),"/edit":factory.NewAccountHandleFunction(operationBalance,true,SaveBalance),"/delete":factory.NewAccountHandleFunction(operationBalance,true,DeleteBalance),"/getInfo":factory.NewAccountHandleFunction(operationBalance,false,GetBalanceInfo),"/getList":factory.NewAccountHandleFunction(operationBalance,false,GetBalanceList),"/batchDelete":factory.NewAccountHandleFunction(operationBalance,true,BatchDeleteBalance),"/simple":factory.NewAccountHandleFunction(operationBalance,true,GetSimpleList),}}//NewHandlers new handlersfuncNewHandlers()*Handlers{return&Handlers{}}