first commit
This commit is contained in:
15
pkg/constant/sys_vars.go
Normal file
15
pkg/constant/sys_vars.go
Normal file
@ -0,0 +1,15 @@
|
||||
package constant
|
||||
|
||||
// 资源类型
|
||||
type ResourceTypeEnum int
|
||||
|
||||
const (
|
||||
Image ResourceTypeEnum = iota // = 0
|
||||
Video // = 1
|
||||
Audio
|
||||
)
|
||||
|
||||
func (actionType ResourceTypeEnum) String() string {
|
||||
names := []string{"图片", "视频", "音频"}
|
||||
return names[actionType]
|
||||
}
|
||||
Reference in New Issue
Block a user