package com.eu.service;

import com.eu.pojo.Activity;
import com.eu.pojo.Community;
import com.eu.pojo.RequestResult;
import com.eu.pojo.Userinfo;

import java.util.List;

/**
 * Created by lip on 17/3/22.
 */
public interface ActivityService {


    /**
     * 返回最新的活动
     * @param mintime 最小的活动时间，若指定此参数，则返回比 mintime 还要小的活动（用于下拉刷新），默认空
     * @param maxtime 最大的活动时间，若指定此参数，则返回比 maxtime 还要大的活动（用于上拉加载），默认空
     * @param count 返回的数据条数
     * @return
     */
    public List<Activity> getCommonActivities(String mintime,String maxtime,Integer count);

    public List<Activity> getMyCreatedActivities(String uid);

    public List<Activity> getMyJoinedActivities(String uid);

    public List<Activity> getMyCollectedActivities(String  uid);

    public List<Long> getParticipatorPhoneList(int avid);

    public RequestResult deleteActivity(int avid,String uid);

    public RequestResult changeActivity(Activity activity,String uid);

    public RequestResult participateActivity(String uid,int avid);

    public RequestResult quitActivity(String uid,int avid);

    public RequestResult createActivity(Activity activity);

    public RequestResult collectActivity(String uid,int avid);

    public RequestResult disCollectActivity(String uid,int avid);

    public RequestResult manageParticipators(String uid,int avid,int verifystate,String reason);

    public RequestResult startRegister(String uid,int avid);

    public RequestResult getRegisterInfo(int avid);

    public RequestResult participateRegister(String uid,int avid);

    // 搜索活动
    public List<Activity> searchActivities(String keywor,Integer page,Integer rows);

    // 结束活动
    public RequestResult closeFinishedActivity(int avid);

    // 非 APP 调用接口，服务器每隔一段时间调用一次。用于判断过期
    public RequestResult autoCloseFinishedActivities();






}

@@ -428,16 +428,22 @@
  %E8%BF%94%E5%9B%9E%E7%9A%84%E6%95%B0%E6%8D%AE%E6%9D%A1%E6%95%B0
+%EF%BC%8C%E9%BB%98%E8%AE%A410%E6%9D%A1
 %0A     * 
@@ -449,16 +449,33 @@
  @return
+ %E6%B4%BB%E5%8A%A8%E5%88%97%E8%A1%A8%E6%95%B0%E7%BB%84%EF%BC%8CJson %E6%A0%BC%E5%BC%8F%E8%BF%94%E5%9B%9E
 %0A     */

完成 Activity 接口升级