update
This commit is contained in:
@ -130,6 +130,12 @@ func Decode(s string) (uint32, error) {
|
||||
const (
|
||||
TypeRunway = 'r' // 走秀 / 文章 lookbook(brand_runway 表)
|
||||
TypeSnap = 's' // 街拍(street_snap 表)
|
||||
|
||||
// 图片级前缀:单张图片也要有对外标识(图片收藏用)。
|
||||
// 与图集前缀(r/s)互不冲突,因此同一数字主键在图集与图片下得到不同编码串,
|
||||
// 收藏表可用 target_uid 同时容纳两种粒度而不撞车;后续也能凭前缀反查所属表。
|
||||
TypeRunwayImage = 'i' // 走秀单图(brand_runway_images 表)
|
||||
TypeSnapImage = 'j' // 街拍单图(street_snap_images 表)
|
||||
)
|
||||
|
||||
// EncodeTyped 在编码串前拼一个类型字符前缀(如 "r"+base62 串)。前缀字符取自 base62 字母表,
|
||||
|
||||
Reference in New Issue
Block a user