-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from little3201/develop
更新表结构,对象,适配spring security jdbc
- Loading branch information
Showing
104 changed files
with
2,223 additions
and
2,815 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
assets/src/main/java/io/leafage/basic/assets/bo/CategoryBO.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Copyright 2018-2024 little3201. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
package io.leafage.basic.assets.bo; | ||
|
||
|
||
import jakarta.validation.constraints.NotBlank; | ||
|
||
/** | ||
* bo class for category | ||
* | ||
* @author wilsonli 2022-12-10 22:28 | ||
**/ | ||
public abstract class CategoryBO { | ||
|
||
/** | ||
* 名称 | ||
*/ | ||
@NotBlank(message = "category name is blank.") | ||
private String name; | ||
|
||
/** | ||
* 描述 | ||
*/ | ||
private String description; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
} |
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
89 changes: 89 additions & 0 deletions
89
assets/src/main/java/io/leafage/basic/assets/bo/PostBO.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
/* | ||
* Copyright 2018-2024 little3201. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
package io.leafage.basic.assets.bo; | ||
|
||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotEmpty; | ||
|
||
import java.util.Set; | ||
|
||
/** | ||
* bo class for post | ||
* | ||
* @author liwenqiang 2022-12-10 22:09 | ||
*/ | ||
public abstract class PostBO { | ||
|
||
/** | ||
* 标题 | ||
*/ | ||
@NotBlank(message = "title must not be blank.") | ||
private String title; | ||
|
||
/** | ||
* 封面 | ||
*/ | ||
private String cover; | ||
|
||
/** | ||
* 内容 | ||
*/ | ||
@NotBlank(message = "context must not be blank.") | ||
private String context; | ||
|
||
/** | ||
* 标签 | ||
*/ | ||
@NotEmpty(message = "tags must not be empty.") | ||
private Set<String> tags; | ||
|
||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
public void setTitle(String title) { | ||
this.title = title; | ||
} | ||
|
||
public String getCover() { | ||
return cover; | ||
} | ||
|
||
public void setCover(String cover) { | ||
this.cover = cover; | ||
} | ||
|
||
public String getContext() { | ||
return context; | ||
} | ||
|
||
public void setContext(String context) { | ||
this.context = context; | ||
} | ||
|
||
public Set<String> getTags() { | ||
return tags; | ||
} | ||
|
||
public void setTags(Set<String> tags) { | ||
this.tags = tags; | ||
} | ||
|
||
} |
38 changes: 38 additions & 0 deletions
38
assets/src/main/java/io/leafage/basic/assets/constants/StatisticsEnum.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright 2018-2024 little3201. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
package io.leafage.basic.assets.constants; | ||
|
||
/** | ||
* statistics type enum | ||
* | ||
* @author liwenqiang 2022-05-31 09:03 | ||
**/ | ||
public enum StatisticsEnum { | ||
|
||
VIEWED("viewed"), | ||
|
||
LIKES("likes"), | ||
|
||
COMMENTS("comments"); | ||
|
||
public final String value; | ||
|
||
StatisticsEnum(String value) { | ||
this.value = value; | ||
} | ||
} |
67 changes: 0 additions & 67 deletions
67
assets/src/main/java/io/leafage/basic/assets/controller/PostStatisticsController.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.