package partner import "app.yhyue.com/moapp/jybase/redis" // 存储文档doc 起始-id func SetDocsStartId(code, key string, startId int64, expireTime int) bool { return redis.Put(code, key, startId, expireTime) } // 获取文档doc 起始-id func GetDocsStartId(code, key string) int64 { return int64(redis.GetInt(code, key)) } // 删除文档doc 起始-id func DelDocsStartId(code, key string) bool { return redis.Del(code, key) } // 更新文档信息起始时间 func SetUpdateTaskInfo(code, key, startDate string, expireTime int) bool { return redis.Put(code, key, startDate, expireTime) } // 获取文档信息起始时间 func GetUpdateTaskInfo(code, key string) string { return redis.GetStr(code, key) }