Skip to content

wldst/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

api

this is sdk base lemodo, provide CRUD Data Service interface.

#使用说明 到指定工程中添加依赖 com.wldst api 0.0.26-SNAPSHOT 调用代码:直接调用RuderApi类的相关方法,即可实现增删改查。 import com.wldst.ruder.api.RuderApi;

Map<String, Object> param = newMap();
Long id2 = getUserId(user);

Map<String, Object> chatSession = RuderApi.getAttMapBy("id", sessionId, "ChatSession");
if (chatSession != null) {
    String title = string(chatSession, "title");
    if (title == null) {
	chatSession.put("title", title);
	sessionId = String.valueOf(RuderApi.save(chatSession, "ChatSession"));
    }
} else {
    chatSession = newMap();
    chatSession.put("title", prompt);
    chatSession.put("userId", id2);
    sessionId = String.valueOf(RuderApi.save(chatSession, "ChatSession"));
} 

3、配置好lemodo项目地址在对应的业务配置文件: src/main/resources/application.properties,添加一下配置 ruder_url=http://localhost:9500/ ruder_name=root

About

this is sdk base lemode, provide CRUD Data Service interface.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages