-
Notifications
You must be signed in to change notification settings - Fork 505
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
base: master
Are you sure you want to change the base?
【研发商店】支持展示版本日志 #1761 #11477
Conversation
|
||
@Operation(summary = "根据组件Code获取组件版本日志") | ||
@GET | ||
@Path("/{storeType}/{storeCode}/getVersionLogs/") |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
现在确定姚分页,page和pageSize不要考虑可为空的情况
No description provided.