Skip to content

[WIP]feat: query config listeners info#134

Open
l-7-l wants to merge 4 commits intonacos-group:masterfrom
l-7-l:master
Open

[WIP]feat: query config listeners info#134
l-7-l wants to merge 4 commits intonacos-group:masterfrom
l-7-l:master

Conversation

@l-7-l
Copy link

@l-7-l l-7-l commented Sep 5, 2024

#73

@CLAassistant
Copy link

CLAassistant commented Sep 5, 2024

CLA assistant check
All committers have signed the CLA.


#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(transparent)]
pub struct AppName(String);
Copy link
Author

Choose a reason for hiding this comment

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

AppName 位置需要改动吗? 需要添加校验规则吗?

Copy link
Collaborator

Choose a reason for hiding this comment

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

AppName后面注册中心应该也会用,位置可以考虑放在common/model中;
校验规则应该不需要,取值上可以把考虑只取符合规则的值,如果不合规就当做unknow。

Copy link
Author

Choose a reason for hiding this comment

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

好的

pagiante: &PaginateQuery,
) -> (usize, Vec<ConfigListenerDo>) {
let ids = self.listener.listener.get(config_key).unwrap();
let cursors = &ids[pagiante.page_no - 1..pagiante.page_size];
Copy link
Author

Choose a reason for hiding this comment

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

page_no 的最小值是1

@l-7-l l-7-l changed the title feat: query config listeners info [WIP]feat: query config listeners info Sep 5, 2024
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.

3 participants