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

[Feature Request]: 应用增加 “唯一地址” #1733

Open
rakuyoMo opened this issue Nov 22, 2024 · 6 comments
Open

[Feature Request]: 应用增加 “唯一地址” #1733

rakuyoMo opened this issue Nov 22, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@rakuyoMo
Copy link
Contributor

rakuyoMo commented Nov 22, 2024

描述 | Description

现状

现在应用页使用序号作为 url 唯一地址,比如 https://tryzealot.ews.im/apps/2

需求

希望能像渠道一样增加一个唯一地址字段,使得 url 可以变为类似 https://tryzealot.ews.im/apps/identifier 这样。

用处

应用和渠道可以使用同一个前缀,前缀作为应用唯一标识,在前缀后拼接渠道作为渠道唯一标识,方便关联应用和渠道,减少需要配置的字段。

比如使用 xxapp 作为应用唯一标识,xxapp-test 作为渠道标识。内部服务只需要存储 xxapptest 即可,方便拼接后一键跳转到列表页而不是某个具体的应用页。

test 本身也是作为环境标识使用,这样没有和业务无关的冗余字段。如果再存一个 2,和其他业务都关联不上,而且有点多余。

@rakuyoMo rakuyoMo added the enhancement New feature or request label Nov 22, 2024
Copy link

welcome bot commented Nov 22, 2024

感谢你提交的问题或反馈,我会在有时间的时候回复在此期间你可以看看之前被解决的反馈说不定有你需要的答案。
Thanks for opening this issue, a maintainer will get back to you shortly!

@Issues-translate-bot
Copy link

Bot translate issue to English automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: [Feature Request]: The application adds "unique address"

Description | Description

status quo

Now the application page uses the serial number as the unique url address, such as https://tryzealot.ews.im/apps/2.

need

It is hoped that a unique address field can be added like a channel so that the url can become something like https://tryzealot.ews.im/apps/identifier.

##Use

Applications and channels can use the same prefix. The prefix serves as the unique identifier of the application, and the channel is spliced ​​after the prefix as the unique identifier of the channel. This facilitates the association of applications and channels and reduces the number of fields that need to be configured.

For example, use xxapp as the unique application identifier and xxapp-test as the channel identifier. The internal service only needs to store xxapp and test, which is convenient for splicing and use. Test itself is also used as an environment identifier. If you save another 2, it will not be related to other businesses, and it will be a bit redundant.

@icyleaf
Copy link
Member

icyleaf commented Nov 22, 2024

You need review this page: https://tryzealot.ews.im/appProductionAndroid/overview and switch the scheme and channel, You can use web or API to customize channel slug key to let it be done.

@rakuyoMo
Copy link
Contributor Author

You need review this page: https://tryzealot.ews.im/appProductionAndroid/overview and switch the scheme and channel, You can use web or API to customize channel slug key to let it be done.

For your example, I need to semantically represent the 1 part of https://tryzealot.ews.im/apps/1.

I need to jump directly to https://tryzealot.ews.im/apps/1 instead of https://tryzealot.ews.im/appProductionAndroid/overview, that is, a list of channels for an app, not a specific channel.

Is it possible to accomplish this task using a custom API?

@icyleaf
Copy link
Member

icyleaf commented Nov 22, 2024

customize 'slug' key in channel APIs.

@rakuyoMo
Copy link
Contributor Author

customize 'slug' key in channel APIs.

... I know that the channel can set the slug, not only in the API, but also on the web page.

What I need is the slug of the application, not the channel.

Specifically, add a slug parameter in https://tryzealot.ews.im/api/apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Maybe later
Development

No branches or pull requests

3 participants