22 lines
521 B
Go
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
|
|
}
|