@CompileStatic@groovy.transform.CompileStatic class MiniprogramController extends Object
| Type | Name and description |
|---|---|
MiniprogramService |
miniprogramService |
| Type | Name and description |
|---|---|
Object |
bind(String code, String username, String password)用于初次登录本系统时,将微信的 openid 与本系统的 Employee 的 wechatId 同步 |
Object |
deleteAttachment(String code, String id)删除附件 |
Object |
downloadAttachment(String code, String id)附件下载 |
Object |
getAttachments(String code, String dataClass, Long dataId, String tags)获得文档附件 |
Object |
login(String code)根据微信用户登录凭证(code),获取本系统的对应的用户信息 |
Object |
unbind(String code)根据微信用户退出登录,并解绑微信账号 |
Object |
updatePassword(String code, String oldpassword, String newpassword, String newpassword2)修改密码 |
Object |
uploadAttachments(String code, String dataClass, Long dataId)附件上传 |
| Methods inherited from class | Name |
|---|---|
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |
用于初次登录本系统时,将微信的 openid 与本系统的 Employee 的 wechatId 同步
code - 登录凭证username - 登录名password - 登录密码删除附件
映射地址:delete "/miniprogram/attachment"
id - 附件的 uuid附件下载
映射地址:get "/miniprogram/attachment/download"
获得文档附件
映射地址:get "/miniprogram/attachment"
根据微信用户登录凭证(code),获取本系统的对应的用户信息
code - 登录凭证根据微信用户退出登录,并解绑微信账号
code - 登录凭证修改密码
映射地址:post "/miniprogram/password"
附件上传
映射地址:post "/miniprogram/attachment"