package com.ycl.jxkg.controller.wx; import com.ycl.jxkg.context.WxContext; import com.ycl.jxkg.domain.entity.User; import com.ycl.jxkg.domain.entity.UserToken; import org.springframework.beans.factory.annotation.Autowired; public class BaseWXApiController { @Autowired private WxContext wxContext; protected User getCurrentUser() { return wxContext.getCurrentUser(); } protected UserToken getUserToken() { return wxContext.getCurrentUserToken(); } }