refactor: SimApiRequestDelegateFactory/SimApiResultWriter 从 extensions 移到 helpers
- 包 simapi.extensions → simapi.helpers - 新增 interfaces/IBindRequestContext 接口切断 helpers↔controllers 循环依赖 (工厂只依赖接口,不再依赖 SimApiBaseController) - SimApiAuth 注解类与 helpers.SimApiAuth 同名冲突,用 import 别名 SimApiAuthAttribute 解决
This commit is contained in:
@@ -11,12 +11,13 @@ import soulsoft_web_http.*
|
||||
import soulsoft_web_mvc.core.*
|
||||
import simapi.communications.*
|
||||
import simapi.helpers.*
|
||||
import simapi.interfaces.*
|
||||
|
||||
/**
|
||||
* 基础控制器:所有控制器均继承本控制器。
|
||||
* 对齐 C# 的 SimApiBaseController([Consumes]/[Produces] JSON + 登录信息)。
|
||||
*/
|
||||
public open class SimApiBaseController <: Controller {
|
||||
public open class SimApiBaseController <: Controller & IBindRequestContext {
|
||||
/**
|
||||
* 当前登录信息(需 EnableSimApiAuth;未登录抛 401)。
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user