feat: add tags to application (#2027)

* feat: add tags to application

* fix: fix for merge master

* feat: update i18n(backend&frontend) for application tags
This commit is contained in:
haiwu
2023-06-30 00:04:12 +08:00
committed by GitHub
parent 1c42b6e395
commit 807aea5ec7
30 changed files with 76 additions and 12 deletions

View File

@ -43,6 +43,15 @@ func ContainsString(values []string, val string) bool {
return sort.SearchStrings(values, val) != len(values)
}
func InSlice(slice []string, elem string) bool {
for _, val := range slice {
if val == elem {
return true
}
}
return false
}
func ReturnAnyNotEmpty(strs ...string) string {
for _, str := range strs {
if str != "" {