上传api 修复

This commit is contained in:
liwei1dao 2023-02-13 15:18:18 +08:00
parent 6e42fb6a7f
commit 6a968e9c4d
2 changed files with 9 additions and 6 deletions

View File

@ -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

View File

@ -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,
}