redis.go 424 字节
package utils

import (
	"fmt"
	"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/constant"
)

//redis键值
func RedisKey(businessKey string) string {
	//项目:环境:业务码
	return fmt.Sprintf("%v:%v", constant.SERVICE_NAME, businessKey)
}

//redis键值 项标识
func RedisKeyWithId(businessKey string, id int64) string {
	//项目:环境:业务码
	return fmt.Sprintf("%v:%v:%v", constant.SERVICE_NAME, businessKey, id)
}