龚焕茏
2024-07-09 c5c10c1bb95f5bb7fdc8b714c5c998e78c26e0f7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.mindskip.xzs.controller.wx;
 
import com.mindskip.xzs.context.WxContext;
import com.mindskip.xzs.domain.User;
import com.mindskip.xzs.domain.UserToken;
import com.mindskip.xzs.utility.ModelMapperSingle;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
 
public class BaseWXApiController {
    protected final static ModelMapper modelMapper = ModelMapperSingle.Instance();
    @Autowired
    private WxContext wxContext;
 
    protected User getCurrentUser() {
        return wxContext.getCurrentUser();
    }
 
    protected UserToken getUserToken() {
        return wxContext.getCurrentUserToken();
    }
}