-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
875ff6f
commit 8be100b
Showing
7 changed files
with
42 additions
and
33 deletions.
There are no files selected for viewing
37 changes: 18 additions & 19 deletions
37
src/main/java/edu/cmipt/gcs/controller/UserController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,30 @@ | ||
package edu.cmipt.gcs.pojo.user; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
@Schema(description = "User Data Transfer Object") | ||
public class UserDTO { | ||
@Schema(accessMode = Schema.AccessMode.READ_ONLY, description = "User ID") | ||
private Long id; | ||
@Schema(description = "Username", requiredMode = Schema.RequiredMode.REQUIRED, example = "admin") | ||
|
||
@Schema( | ||
description = "Username", | ||
requiredMode = Schema.RequiredMode.REQUIRED, | ||
example = "admin") | ||
private String username; | ||
@Schema(description = "Email", requiredMode = Schema.RequiredMode.REQUIRED, example = "[email protected]") | ||
|
||
@Schema( | ||
description = "Email", | ||
requiredMode = Schema.RequiredMode.REQUIRED, | ||
example = "[email protected]") | ||
private String email; | ||
@Schema(description = "User Password (Unencrypted)", requiredMode = Schema.RequiredMode.REQUIRED, example = "admin") | ||
|
||
@Schema( | ||
description = "User Password (Unencrypted)", | ||
requiredMode = Schema.RequiredMode.REQUIRED, | ||
example = "admin") | ||
private String userPassword; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
package edu.cmipt.gcs.service; | ||
|
||
import org.springframework.stereotype.Service; | ||
|
||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | ||
|
||
import edu.cmipt.gcs.dao.UserMapper; | ||
import edu.cmipt.gcs.pojo.user.UserPO; | ||
|
||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class UserServiceImpl extends ServiceImpl<UserMapper, UserPO> implements UserService { | ||
} | ||
public class UserServiceImpl extends ServiceImpl<UserMapper, UserPO> implements UserService {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters