18 lines
276 B
Go
18 lines
276 B
Go
|
package domain
|
||
|
|
||
|
type ErrorCode uint32
|
||
|
|
||
|
func (e ErrorCode) ToUint32() uint32 {
|
||
|
return uint32(e)
|
||
|
}
|
||
|
|
||
|
// Error Code 統一這邊改
|
||
|
const (
|
||
|
_ = iota
|
||
|
PostMongoErrorCode ErrorCode = iota
|
||
|
CreatePostError
|
||
|
DelPostError
|
||
|
UpdatePostError
|
||
|
ListPostError
|
||
|
)
|