user.go 274 B

12345678910111213141516
  1. package bus
  2. import (
  3. "assetcenter/db/model"
  4. )
  5. func GetUserInfo(id string) (user *model.User, err error) {
  6. // payload := map[string]string{"id": id}
  7. //
  8. // NatsCenter.RequestPackApi()
  9. // err = nats.bus.Request("user.op.info", payload, 3*time.Second, user)
  10. return
  11. }