pos login edited with phone number
This commit is contained in:
@@ -439,6 +439,13 @@ type PosUser struct {
|
||||
Pin string `json:"pin,omitempty"`
|
||||
Haspassword bool `json:"has_password"`
|
||||
|
||||
// The shift this person works, resolved for display. Zero / empty when the
|
||||
// account has none, which is every account created before shifts existed.
|
||||
Shiftid int `json:"shift_id,omitempty"`
|
||||
Shiftname string `json:"shift_name,omitempty"`
|
||||
Shiftstart string `json:"shift_start,omitempty"`
|
||||
Shiftend string `json:"shift_end,omitempty"`
|
||||
|
||||
// The password, returned only in the answer to a creation or a reset and
|
||||
// never by a listing. An admin who loses it reissues rather than looks it
|
||||
// up — the right shape even while the column behind it is plaintext.
|
||||
@@ -454,14 +461,28 @@ type PosUser struct {
|
||||
// own outlet, and no field in this struct can say otherwise — which is the same
|
||||
// inversion that stopped a till naming its own shop.
|
||||
type PosUserRequest struct {
|
||||
Userid int `json:"user_id"`
|
||||
Fullname string `json:"full_name"`
|
||||
Role string `json:"role"`
|
||||
Pin string `json:"pin"`
|
||||
Password string `json:"password"`
|
||||
Authname string `json:"authname"`
|
||||
Userid int `json:"user_id"`
|
||||
Fullname string `json:"full_name"`
|
||||
Role string `json:"role"`
|
||||
Pin string `json:"pin"`
|
||||
Password string `json:"password"`
|
||||
Authname string `json:"authname"`
|
||||
|
||||
// The mobile number this person signs in with.
|
||||
//
|
||||
// Normalised to ten digits before it is stored, because the till matches on
|
||||
// it exactly and "+91 98765 43210" typed back as "9876543210" would not
|
||||
// find the row. Unique among a tenant's till accounts.
|
||||
Contactno string `json:"contactno"`
|
||||
Status string `json:"status"`
|
||||
|
||||
// Which shift this person works — a staffshifts.staffshiftid, stored on
|
||||
// app_users.shiftid. Zero leaves it unset.
|
||||
//
|
||||
// Informational. Nothing refuses a bill rung outside it; the terminal shows
|
||||
// it so a counter knows who is due.
|
||||
Shiftid int `json:"shift_id"`
|
||||
|
||||
Status string `json:"status"`
|
||||
}
|
||||
|
||||
// PosUserWebRequest is a staff change made from the web console.
|
||||
|
||||
Reference in New Issue
Block a user