package com.xxfc.platform.summit.controller;

import com.github.wxiaoqi.security.auth.client.annotation.IgnoreClientToken;
import com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken;
import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("activity")
@IgnoreClientToken
@Slf4j
public class IndexController  {






    @RequestMapping(value ="/app/unauth/index",method = RequestMethod.GET)
    @IgnoreUserToken
    public ObjectRestResponse index(){
        return  ObjectRestResponse.succ();
    }

    @RequestMapping(value ="/app/unauth/info",method = RequestMethod.GET)
    @IgnoreUserToken
    public ObjectRestResponse info(){
        return  ObjectRestResponse.succ("123456");
    }
}