#{moduleName}_proto "service/api/proto/#{moduleName}/proto" // #{EntityCNName} op#{EntityName}Group := r.Group("/op/#{moduleName}", PrepareOp()) op#{EntityName}Group.POST("create", middleware.JSONParamValidator(#{moduleName}_proto.OpCreateReq{}), middleware.JwtAuthenticator(), OpCreate#{EntityName}) op#{EntityName}Group.POST("update", middleware.JSONParamValidator(#{moduleName}_proto.OpUpdateReq{}), middleware.JwtAuthenticator(), OpUpdate#{EntityName}) op#{EntityName}Group.POST("delete", middleware.JSONParamValidator(#{moduleName}_proto.OpDeleteReq{}), middleware.JwtAuthenticator(), OpDelete#{EntityName}) op#{EntityName}Group.POST("list", middleware.JSONParamValidator(#{moduleName}_proto.OpListReq{}), middleware.JwtAuthenticator(), OpGet#{EntityName}List) // #{EntityCNName} api#{EntityName}Group := r.Group("/api/#{moduleName}", PrepareToC()) api#{EntityName}Group.POST("create", middleware.JSONParamValidator(#{moduleName}_proto.ApiCreateReq{}), middleware.JwtAuthenticator(), ApiCreate#{EntityName}) api#{EntityName}Group.POST("update", middleware.JSONParamValidator(#{moduleName}_proto.ApiUpdateReq{}), middleware.JwtAuthenticator(), ApiUpdate#{EntityName}) api#{EntityName}Group.POST("delete", middleware.JSONParamValidator(#{moduleName}_proto.ApiDeleteReq{}), middleware.JwtAuthenticator(), ApiDelete#{EntityName}) api#{EntityName}Group.POST("list", middleware.JSONParamValidator(#{moduleName}_proto.ApiListReq{}), middleware.JwtAuthenticator(), ApiGet#{EntityName}List)