20 lines
460 B
Go
20 lines
460 B
Go
// Package message -----------------------------
|
|
// @file : ping.go
|
|
// @author : JJXu
|
|
// @contact : wavingbear@163.com
|
|
// @time : 2024/5/23 下午2:20
|
|
// -------------------------------------------
|
|
package message
|
|
|
|
type PingType []byte
|
|
|
|
func (m PingType) GetCmd() string {
|
|
return readStrNumber(m, 0, 3)
|
|
}
|
|
func (m PingType) GetMchId() string {
|
|
return readStrNumber(m, 3, 8)
|
|
}
|
|
func (m PingType) GetBody() string {
|
|
return readString(m, 8, 12)
|
|
}
|