24 lines
632 B
Java
24 lines
632 B
Java
|
|
package com.engine.organization.wrapper;
|
||
|
|
|
||
|
|
import com.engine.core.impl.Service;
|
||
|
|
import com.engine.organization.entity.po.DemoUser;
|
||
|
|
import com.engine.organization.util.OrganizationAssert;
|
||
|
|
import com.engine.organization.util.response.ReturnResult;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @Author weaver_cl
|
||
|
|
* @Description: TODO
|
||
|
|
* @Date 2022/4/26
|
||
|
|
* @Version V1.0
|
||
|
|
**/
|
||
|
|
public class DemoWrapper extends Service {
|
||
|
|
|
||
|
|
|
||
|
|
public ReturnResult testDemo(String name) {
|
||
|
|
|
||
|
|
OrganizationAssert.notNull(name,"参数不能为空");
|
||
|
|
DemoUser demoUser = DemoUser.builder().username("张三").age(12).build();
|
||
|
|
return ReturnResult.successed(demoUser);
|
||
|
|
}
|
||
|
|
}
|