| | 36 | |
| | 37 | == 调积分(根据scoretypeid) == |
| | 38 | |
| | 39 | * 消费论坛积分,要保证余额不能小于0 [[BR]] [[BR]] |
| | 40 | @param userId 用户Id [[BR]] |
| | 41 | @param score 消费的积分额,为正数 [[BR]] |
| | 42 | @param application 应用编码,每个应用的唯一编码,passport中的app-code [[BR]] |
| | 43 | @param action 动作 [[BR]] |
| | 44 | @param reason 原因 [[BR]] |
| | 45 | @param typeId 积分类型 scoretypeid = 11为金币 22为积分 21为积分3 12为积分4 13 为积分5 14 为积分6 15 为积分7 [[BR]] |
| | 46 | @return 操作后的余额 |
| | 47 | long payScore(long userId, long score, int typeId,String application, String action, String reason) [[BR]] |
| | 48 | * 调整用户的论坛积分 [[BR]] [[BR]] |
| | 49 | @param userId 用户Id [[BR]] |
| | 50 | @param score 积分调整额度,可以为正数或负数,不能为0 [[BR]] |
| | 51 | @param action 动作 [[BR]] |
| | 52 | @param reason 原因 [[BR]] |
| | 53 | @param typeId 积分类型 scoretypeid = 11为金币 22为积分 21为积分3 12为积分4 13 为积分5 14 为积分6 15 为积分7 [[BR]] |
| | 54 | @param application 应用编码,每个应用的唯一编码,passport中的app-code [[BR]] |
| | 55 | @return 调整后的余额 [[BR]] |
| | 56 | long changeScore(long userId, long score, int typeId,String application,String action, String reason)[[BR]] |
| | 57 | * 批量调整用户的论坛积分 [[BR]] [[BR]] |
| | 58 | @param userId 用户Id [[BR]] |
| | 59 | @param score 积分调整额度,可以为正数或负数,不能为0 [[BR]] |
| | 60 | @param action 动作 [[BR]] |
| | 61 | @param reason 原因 [[BR]] |
| | 62 | @param typeId 积分类型 scoretypeid = 11为金币 22为积分 21为积分3 12为积分4 13 为积分5 14 为积分6 15 为积分7 [[BR]] |
| | 63 | @param application 应用编码,每个应用的唯一编码,passport中的app-code [[BR]] |
| | 64 | @return 调整后的余额 [[BR]] |
| | 65 | long[] changeScore(long[] userIds, long[] scores, int typeId,String application,String action, String reason)[[BR]] |
| | 66 | * 获得用户当前的论坛积分 [[BR]] [[BR]] |
| | 67 | @param userId 用户Id [[BR]] |
| | 68 | @param typeId 积分类型 scoretypeid = 11为金币 22为积分 21为积分3 12为积分4 13 为积分5 14 为积分6 15 为积分7 [[BR]] |
| | 69 | @return 余额 [[BR]] |
| | 70 | long getScore(long userId,int typeId)[[BR]] |