上传api 修复
This commit is contained in:
parent
6e42fb6a7f
commit
6a968e9c4d
@ -2,7 +2,8 @@ SET CGO_ENABLED=0
|
||||
SET GOOS=windows
|
||||
SET GOARCH=amd64
|
||||
cd ../
|
||||
go build -o build/gateway.exe services/gateway/main.go
|
||||
go build -o build/worker.exe services/worker/main.go
|
||||
go build -o build/web.exe services/web/main.go
|
||||
go build -o build/dbservice.exe services/dbservice/main.go
|
||||
|
||||
go build -o ./bin/cmd.exe ./services/cmd/main.go
|
||||
go build -o ./bin/mainte.exe ./services/mainte/main.go
|
||||
go build -o ./bin/gateway.exe ./services/gateway/main.go
|
||||
go build -o ./bin/worker.exe ./services/worker/main.go
|
||||
|
@ -3,6 +3,8 @@ package friend
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"go_dreamfactory/pb"
|
||||
|
||||
"google.golang.org/protobuf/proto"
|
||||
)
|
||||
|
||||
// 切磋终止
|
||||
@ -10,14 +12,14 @@ func (this *apiComp) StopCheck(session comm.IUserSession, req *pb.FriendStopReq)
|
||||
return
|
||||
}
|
||||
|
||||
func (this *apiComp) Stop(session comm.IUserSession, req *pb.FriendStopReq) (code pb.ErrorCode) {
|
||||
func (this *apiComp) Stop(session comm.IUserSession, req *pb.FriendStopReq) (code pb.ErrorCode, data proto.Message) {
|
||||
if code = this.StopCheck(session, req); code != pb.ErrorCode_Success {
|
||||
return
|
||||
}
|
||||
|
||||
//清楚切磋请求记录
|
||||
this.moduleFriend.ModelFriendQiecuo.DelByUId(req.Uid)
|
||||
|
||||
|
||||
resp := &pb.FriendStopResp{
|
||||
IsSucc: true,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user