You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
436 B
Go
18 lines
436 B
Go
package ckey
|
|
|
|
import "fmt"
|
|
|
|
func CompanyKey(format string, a ...any) string {
|
|
return Company + fmt.Sprintf(format, a...)
|
|
}
|
|
|
|
// CompanyMade 企业
|
|
func CompanyMade(companyId int64, mark string) string {
|
|
return CompanyKey("made:%d_%s", companyId, mark)
|
|
}
|
|
|
|
// CompanyMadeStoreOnce 自定义组件创建标识
|
|
func CompanyMadeStoreOnce(companyId int64, mark string) string {
|
|
return CompanyKey("made_store_once:%d_%s", companyId, mark)
|
|
}
|