xiangpei
2024-05-31 c9d04bc519b73f7fc4841c34e2f15fca9db7aad2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.ycl.jxkg.controller.wx;
 
import com.ycl.jxkg.context.WxContext;
import com.ycl.jxkg.domain.User;
import com.ycl.jxkg.domain.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();
    }
}