@@ -100,10 +100,10 @@ public Page<Model> pageQuery(int currentPage, int pageSize, String nameCn, Strin
100100 @ SystemServiceLog (description = "创建model实现方法" )
101101 public Model createModel (Model model ) {
102102 List <MethodDto > methodDtos = new ArrayList <>();
103- methodDtos .add (getMethodDto (Enums .methodName .CREATED .getValue (), model ));
104- methodDtos .add (getMethodDto (Enums .methodName .UPDATE .getValue (), model ));
105- methodDtos .add (getMethodDto (Enums .methodName .QUERY .getValue (), model ));
106- methodDtos .add (getMethodDto (Enums .methodName .DELETE .getValue (), model ));
103+ methodDtos .add (getMethodDto (Enums .methodName .CREATED .getValue (), Enums . methodName . INSERTAPI . getValue (), model ));
104+ methodDtos .add (getMethodDto (Enums .methodName .UPDATE .getValue (), Enums . methodName . UPDATEAPI . getValue (), model ));
105+ methodDtos .add (getMethodDto (Enums .methodName .QUERY .getValue (), Enums . methodName . QUERYAPI . getValue (), model ));
106+ methodDtos .add (getMethodDto (Enums .methodName .DELETE .getValue (), Enums . methodName . DELETEAPI . getValue (), model ));
107107 model .setMethod (methodDtos );
108108 int result = this .baseMapper .createModel (model );
109109 if (result != 1 ) {
@@ -141,10 +141,10 @@ public Model deleteModelById(Integer id) {
141141 @ SystemServiceLog (description = "根据id修改model实现方法" )
142142 public Model updateModelById (Model model ) {
143143 List <MethodDto > methodDtos = new ArrayList <>();
144- methodDtos .add (getMethodDto (Enums .methodName .CREATED .getValue (), model ));
145- methodDtos .add (getMethodDto (Enums .methodName .UPDATE .getValue (), model ));
146- methodDtos .add (getMethodDto (Enums .methodName .QUERY .getValue (), model ));
147- methodDtos .add (getMethodDto (Enums .methodName .DELETE .getValue (), model ));
144+ methodDtos .add (getMethodDto (Enums .methodName .CREATED .getValue (), Enums . methodName . INSERTAPI . getValue (), model ));
145+ methodDtos .add (getMethodDto (Enums .methodName .UPDATE .getValue (), Enums . methodName . UPDATEAPI . getValue (), model ));
146+ methodDtos .add (getMethodDto (Enums .methodName .QUERY .getValue (), Enums . methodName . QUERYAPI . getValue (), model ));
147+ methodDtos .add (getMethodDto (Enums .methodName .DELETE .getValue (), Enums . methodName . DELETEAPI . getValue (), model ));
148148 model .setMethod (methodDtos );
149149 if (model .getId () == null ) {
150150 throw new ServiceException (ExceptionEnum .CM002 .getResultCode (), ExceptionEnum .CM002 .getResultCode ());
@@ -157,9 +157,10 @@ public Model updateModelById(Model model) {
157157 return modelResult ;
158158 }
159159
160- private MethodDto getMethodDto (String name , Model model ) {
160+ private MethodDto getMethodDto (String name , String nameEn , Model model ) {
161161 MethodDto methodDto = new MethodDto ();
162162 methodDto .setName (name );
163+ methodDto .setNameEn (nameEn );
163164 List <ResponseParameter > responseParameterList = getResponseParameters (name );
164165 RequestParameter requestParameter = new RequestParameter ();
165166 requestParameter .setProp (Enums .methodParam .ID .getValue ());
@@ -175,13 +176,13 @@ private MethodDto getMethodDto(String name, Model model) {
175176 RequestParameter nameCn = new RequestParameter ();
176177 nameCn .setProp (Enums .methodParam .NAMECN .getValue ());
177178 nameCn .setType (Enums .paramType .STRING .getValue ());
178- RequestParameter nameEn = new RequestParameter ();
179- nameEn .setProp (Enums .methodParam .NAMEEN .getValue ());
180- nameEn .setType (Enums .paramType .STRING .getValue ());
179+ RequestParameter requestNameEn = new RequestParameter ();
180+ requestNameEn .setProp (Enums .methodParam .NAMEEN .getValue ());
181+ requestNameEn .setType (Enums .paramType .STRING .getValue ());
181182 parameterList .add (currentPage );
182183 parameterList .add (pageSize );
183184 parameterList .add (nameCn );
184- parameterList .add (nameEn );
185+ parameterList .add (requestNameEn );
185186
186187 }
187188 if (!name .equals (Enums .methodName .DELETE .getValue ())) {
0 commit comments