Merge pull request #50 from mindskip/alvis

移除lombok
This commit is contained in:
alvis 2021-01-22 09:37:39 +08:00 committed by GitHub
commit 64a49ad0ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 11 deletions

View File

@ -118,13 +118,6 @@
<version>2.3.3</version> <version>2.3.3</version>
</dependency> </dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.8</version>
<scope>provided</scope>
</dependency>
<dependency> <dependency>
<groupId>org.apache.commons</groupId> <groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId> <artifactId>commons-lang3</artifactId>

View File

@ -1,16 +1,21 @@
package com.mindskip.xzs.viewmodel; package com.mindskip.xzs.viewmodel;
import com.mindskip.xzs.utility.ModelMapperSingle; import com.mindskip.xzs.utility.ModelMapperSingle;
import lombok.Data;
import org.modelmapper.ModelMapper; import org.modelmapper.ModelMapper;
/** /**
* @author 武汉思维跳跃科技有限公司 * @author 武汉思维跳跃科技有限公司
*/ */
@Data
public class BaseVM { public class BaseVM {
protected static ModelMapper modelMapper = ModelMapperSingle.Instance(); protected static ModelMapper modelMapper = ModelMapperSingle.Instance();
public static ModelMapper getModelMapper() {
return modelMapper;
}
public static void setModelMapper(ModelMapper modelMapper) {
BaseVM.modelMapper = modelMapper;
}
} }

View File

@ -1,10 +1,8 @@
package com.mindskip.xzs.viewmodel.wx.student.user; package com.mindskip.xzs.viewmodel.wx.student.user;
import lombok.Data;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
@Data
public class BindInfo { public class BindInfo {
@NotBlank @NotBlank
@ -15,4 +13,28 @@ public class BindInfo {
@NotBlank @NotBlank
private String code; private String code;
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
} }