fuliqi
2024-10-17 8546b3d285af4235a0ef615a0c6e89486ae2c806
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.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();
    }
}