类型同步修改
This commit is contained in:
parent
ce3440d7f9
commit
a54dcebfe9
@ -190,12 +190,12 @@ func Test_Redis_Encoder_Hash(t *testing.T) {
|
||||
// fmt.Printf("data:%v err:%v\n", data, err)
|
||||
|
||||
// redis.HSet("test:1003", "Name", "eeee")
|
||||
// name := ""
|
||||
// err := redis.HGet("test:103", "name", &name)
|
||||
// if err != nil {
|
||||
// fmt.Println(err)
|
||||
// }
|
||||
// fmt.Println(name)
|
||||
name := ""
|
||||
err := redis.HGet("test:103", "name", &name)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
fmt.Println(name)
|
||||
|
||||
// data1 := map[string]*TestData{"li_1": {Name: "liwei2dao", Agr: 56}, "li_2": {Name: "liwei3dao", Agr: 78}}
|
||||
// err := redis.HMSet("test:1004", data1)
|
||||
@ -203,15 +203,4 @@ func Test_Redis_Encoder_Hash(t *testing.T) {
|
||||
// data2 := make(map[string]*TestData)
|
||||
// err = redis.HGetAll("test:1004", data2)
|
||||
// fmt.Printf("data2:%v err:%v\n", data2, err)
|
||||
|
||||
// d1 := map[string]interface{}{"ll": "1", "age": 20}
|
||||
// err := redis.HMSet("test:104", d1)
|
||||
// fmt.Printf("err:%v\n", err)
|
||||
// d2 := make(map[string]interface{})
|
||||
// err := redis.HGetAll("test:105", d2)
|
||||
// fmt.Printf("data2:%v err:%v\n", d2, err)
|
||||
|
||||
iskeep, err := redis.ExistsKey("test:105")
|
||||
fmt.Printf("ok:%v err:%v\n", iskeep, err)
|
||||
|
||||
}
|
||||
|
@ -7,12 +7,12 @@ import (
|
||||
)
|
||||
|
||||
//参数校验
|
||||
func (this *Api_Comp) DelUserMailReq_Check(session comm.IUserSession, req *pb.Mail_DelMail_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
||||
func (this *Api_Comp) DelMail_Check(session comm.IUserSession, req *pb.Mail_DelMail_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
||||
return
|
||||
}
|
||||
|
||||
// 删除邮件
|
||||
func (this *Api_Comp) DelUserMailReq(session comm.IUserSession, agrs map[string]interface{}, req *pb.Mail_DelMail_Req) (code pb.ErrorCode) {
|
||||
func (this *Api_Comp) DelMail(session comm.IUserSession, agrs map[string]interface{}, req *pb.Mail_DelMail_Req) (code pb.ErrorCode) {
|
||||
var err error
|
||||
mailinfo := make([]*pb.DB_MailData, 0)
|
||||
defer func() {
|
||||
|
@ -5,12 +5,12 @@ import (
|
||||
"go_dreamfactory/pb"
|
||||
)
|
||||
|
||||
func (this *Api_Comp) Mail_GetUserMailAttachment_Req_Check(session comm.IUserSession, req *pb.Mail_GetUserMailAttachment_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
||||
func (this *Api_Comp) GetUserMailAttachment_Check(session comm.IUserSession, req *pb.Mail_GetUserMailAttachment_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
||||
return
|
||||
}
|
||||
|
||||
// 领取附件
|
||||
func (this *Api_Comp) Mail_GetUserMailAttachment_Req(session comm.IUserSession, agrs map[string]interface{}, req *pb.Mail_GetUserMailAttachment_Req) (code pb.ErrorCode) {
|
||||
func (this *Api_Comp) GetUserMailAttachment(session comm.IUserSession, agrs map[string]interface{}, req *pb.Mail_GetUserMailAttachment_Req) (code pb.ErrorCode) {
|
||||
|
||||
var (
|
||||
mail *pb.DB_MailData
|
||||
|
@ -6,12 +6,12 @@ import (
|
||||
"go_dreamfactory/pb"
|
||||
)
|
||||
|
||||
func (this *Api_Comp) Mail_GetList_Req_Check(session comm.IUserSession, req *pb.Mail_GetList_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
||||
func (this *Api_Comp) GetList_Check(session comm.IUserSession, req *pb.Mail_GetList_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
||||
return
|
||||
}
|
||||
|
||||
// 查看所有邮件信息
|
||||
func (this *Api_Comp) Mail_GetList_Req(session comm.IUserSession, agrs map[string]interface{}, req *pb.Mail_GetList_Req) (code pb.ErrorCode) {
|
||||
func (this *Api_Comp) GetList(session comm.IUserSession, agrs map[string]interface{}, req *pb.Mail_GetList_Req) (code pb.ErrorCode) {
|
||||
|
||||
var err error
|
||||
mailinfo := make([]*pb.DB_MailData, 0)
|
||||
|
@ -5,12 +5,12 @@ import (
|
||||
"go_dreamfactory/pb"
|
||||
)
|
||||
|
||||
func (this *Api_Comp) Mail_ReadMail_Req_Check(session comm.IUserSession, req *pb.Mail_ReadMail_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
||||
func (this *Api_Comp) ReadMail_Check(session comm.IUserSession, req *pb.Mail_ReadMail_Req) (result map[string]interface{}, code comm.ErrorCode) {
|
||||
return
|
||||
}
|
||||
|
||||
// 查看某一封邮件
|
||||
func (this *Api_Comp) Mail_ReadMail_Req(session comm.IUserSession, agrs map[string]interface{}, req *pb.Mail_ReadMail_Req) (code pb.ErrorCode) {
|
||||
func (this *Api_Comp) ReadMail(session comm.IUserSession, agrs map[string]interface{}, req *pb.Mail_ReadMail_Req) (code pb.ErrorCode) {
|
||||
var (
|
||||
err error
|
||||
mail *pb.DB_MailData
|
||||
|
@ -12,7 +12,7 @@ func (this *Api_Comp) Useitem_Check(session comm.IUserSession, req *pb.Pack_UseI
|
||||
}
|
||||
|
||||
//使用道具
|
||||
func (this *Api_Comp) Useitem(session comm.IUserSession, agrs map[string]interface{}, req *pb.Pack_UseItem_Resp) (code pb.ErrorCode) {
|
||||
func (this *Api_Comp) Useitem(session comm.IUserSession, agrs map[string]interface{}, req *pb.Pack_UseItem_Req) (code pb.ErrorCode) {
|
||||
defer func() {
|
||||
session.SendMsg(string(this.module.GetType()), UseItemResp, &pb.Pack_UseItem_Resp{})
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user