zjh
2025-06-05 2eb40036e885988fbf93ebcb98a339b197fb6340
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.ltkj.web.controller.app;
 
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
 
/**
 * 小程序预约下单Controller
 *
 * @author ltkj_赵佳豪&李格
 * @date 2023-05-18
 *  绑定当前登录的用户
 *  不同于@ModelAttribute
 */
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
public @interface CurrentMember {
 
    /**
     * 当前用户在request中的名字
     */
    String value() default "user";
 
}