tencent-im/internal/types/interface.go

31 lines
493 B
Go
Raw Permalink Normal View History

2022-09-27 11:31:23 +08:00
/**
* @Author: Echo
* @Email:1711788888@qq.com
* @Date: 2021/8/27 12:54 下午
* @Desc: TODO
*/
package types
type BaseRespInterface interface {
GetErrorCode() int
GetErrorInfo() string
}
func (r *BaseResp) GetErrorCode() int {
return r.ErrorCode
}
func (r *BaseResp) GetErrorInfo() string {
return r.ErrorInfo
}
type ActionBaseRespInterface interface {
BaseRespInterface
GetActionStatus() string
}
func (r *ActionBaseResp) GetActionStatus() string {
return r.ActionStatus
}