22 lines
472 B
Go
22 lines
472 B
Go
package dispatch
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/pb"
|
|
|
|
"google.golang.org/protobuf/proto"
|
|
)
|
|
|
|
// 刷新
|
|
func (a *apiComp) RefreshCheck(session comm.IUserSession, req *pb.DispatchRefreshReq) (code pb.ErrorCode) {
|
|
return
|
|
}
|
|
|
|
func (a *apiComp) Refresh(session comm.IUserSession, req *pb.DispatchRefreshReq) (code pb.ErrorCode, data proto.Message) {
|
|
|
|
rsp := &pb.DispatchRefreshResp{}
|
|
|
|
session.SendMsg(string(a.module.GetType()), "refresh", rsp)
|
|
return
|
|
}
|