消毒机设备
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
336 B

  1. import { createWebSocket } from 'libs/socket'
  2. const wsClient = createWebSocket()
  3. export const login = async (params: User.Login) => {
  4. return await wsClient.waitAndSend({
  5. messageType: 'Command',
  6. fnName: 'login',
  7. className: 'UserMgrService',
  8. messageId: `msg_${Date.now()}`,
  9. params: {
  10. ...params,
  11. },
  12. })
  13. }