Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【研发商店】支持展示版本日志 #1761 #11477

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

Kzhou991
Copy link
Collaborator

No description provided.


@Operation(summary = "根据组件Code获取组件版本日志")
@GET
@Path("/{storeType}/{storeCode}/getVersionLogs/")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

url定义不符合restful风格:应该是比如:/types/{storeType}/codes/{storeCode}/version/logs/get

@Parameter(description = "userId", required = true)
@HeaderParam(AUTH_HEADER_USER_ID)
userId: String,
@Parameter(description = "组件ID", required = true)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是组件标识,不是ID

pageSize: Int?
): Result<Record3<String, String, LocalDateTime>>? {
val atom = TAtom.T_ATOM
val atomVersionLogs = TAtomVersionLog.T_ATOM_VERSION_LOG
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这名称后面不应该加s吧

storeVersionLogDao.getStoreComponentVersionLogs(dslContext, storeCode, storeType.type.toByte())

val versionLogInfos = if (storeVersionLogList?.isNotEmpty == true) {
count = storeVersionLogList.size
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

方法很多参数,使用kotlin的name=value这种写法

override fun getStoreComponentVersionLogs(
dslContext: DSLContext,
storeCode: String,
page: Int?,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

现在确定姚分页,page和pageSize不要考虑可为空的情况

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants