mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
473 B
29 lines
473 B
2 years ago
|
package dao
|
||
|
|
||
|
const (
|
||
|
idxActNop indexActionT = iota + 1
|
||
|
idxActCreatePost
|
||
|
idxActUpdatePost
|
||
|
idxActDeletePost
|
||
|
idxActStickPost
|
||
|
)
|
||
|
|
||
|
type indexActionT uint8
|
||
|
|
||
|
func (a indexActionT) String() string {
|
||
|
switch a {
|
||
|
case idxActNop:
|
||
|
return "no operator"
|
||
|
case idxActCreatePost:
|
||
|
return "create post"
|
||
|
case idxActUpdatePost:
|
||
|
return "update post"
|
||
|
case idxActDeletePost:
|
||
|
return "delete post"
|
||
|
case idxActStickPost:
|
||
|
return "stick post"
|
||
|
default:
|
||
|
return "unknow action"
|
||
|
}
|
||
|
}
|