|
@@ -78,14 +78,13 @@ param
|
|
|
return
|
|
|
文库列表、异常
|
|
|
*/
|
|
|
-func GeActivityList(userId string, code, pageNum, pageSize int64) (interface{}, error) {
|
|
|
+func GeActivityList(userId string, code, pageNum, pageSize int64) ([]*stdlib.DocActivity, error) {
|
|
|
resp, err := jyStdDocStdlib.DocActivity(context.Background(), &stdlib.DocActivityReq{
|
|
|
AppId: config.JyDocsAppConfig.AppId,
|
|
|
ActivityId: code,
|
|
|
PageNum: pageNum,
|
|
|
PageSize: pageSize,
|
|
|
})
|
|
|
- log.Println(config.JyDocsAppConfig.AppId, int32(code), int32(pageNum), int32(pageSize))
|
|
|
if err != nil {
|
|
|
log.Printf("%s GeActivityList call error %v\n", userId, err)
|
|
|
return nil, err
|
|
@@ -112,7 +111,6 @@ func GetDocDetail(userId, docId string) (*stdlib.DocInfo, bool, error) {
|
|
|
UserId: userId,
|
|
|
DocId: docId,
|
|
|
})
|
|
|
- log.Println(config.JyDocsAppConfig.AppId, userId, docId)
|
|
|
if err != nil {
|
|
|
log.Printf("%s GetDocDetail call error %v\n", userId, err)
|
|
|
return nil, false, err
|
|
@@ -123,16 +121,3 @@ func GetDocDetail(userId, docId string) (*stdlib.DocInfo, bool, error) {
|
|
|
}
|
|
|
return resp.DocDeail, resp.IsBuy, nil
|
|
|
}
|
|
|
-
|
|
|
-/*
|
|
|
-获取文库内容
|
|
|
-param
|
|
|
- userId 用户id
|
|
|
- docId 文库id
|
|
|
-return
|
|
|
- interface 文库内容
|
|
|
- error 异常
|
|
|
-*/
|
|
|
-func GetDocContent(userId, docId string) (interface{}, error) {
|
|
|
- return nil, nil
|
|
|
-}
|