go_dreamfactory/modules/oldtimes/api_getall.go
2023-04-25 18:27:51 +08:00

22 lines
521 B
Go

package oldtimes
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
)
func (this *apiComp) GetallCheck(session comm.IUserSession, req *pb.OldtimesGetallReq) (code pb.ErrorCode) {
return
}
func (this *apiComp) Getall(session comm.IUserSession, req *pb.OldtimesGetallReq) (code pb.ErrorCode, data *pb.ErrorData) {
uid := session.GetUserId()
rsp := &pb.OldtimesGetallResp{}
d := this.module.modelOldtimes.getDBOldtimes(uid)
rsp.Data = d
session.SendMsg(string(this.module.GetType()), "getall", rsp)
return
}