Documentation ¶
Index ¶
- Constants
- func ConvertToByte(resp interface{}) []byte
- func ConvertToStruct(resp []byte) interface{}
- type AppForm
- type Auth
- type Body
- type Client
- func (c *Client) AddComment(params map[string]string) interface{}
- func (c *Client) CreateForm(appId string) interface{}
- func (c *Client) DayOff(wfsid string, params map[string]string) interface{}
- func (c *Client) Delete(endpoint string, params map[string]string) []byte
- func (c *Client) DeleteApp(wfsId string) interface{}
- func (c *Client) DeleteDepart(deartId string) interface{}
- func (c *Client) DeleteImage(attachmentId string) interface{}
- func (c *Client) DeletePosition(posId string) interface{}
- func (c *Client) DownloadPdf(params map[string]string) interface{}
- func (c *Client) DownloadZip(wfs_id string) interface{}
- func (c *Client) FindStatus(wfsId string) interface{}
- func (c *Client) Get(endpoint string, params map[string]string) []byte
- func (c *Client) GetApps() interface{}
- func (c *Client) GetDepartDetail(deartId string) interface{}
- func (c *Client) GetDepartments() interface{}
- func (c *Client) GetItemListing(params map[string]string) interface{}
- func (c *Client) GetPosition() interface{}
- func (c *Client) GetPositionDetail(posId string) interface{}
- func (c *Client) GetRoles() interface{}
- func (c *Client) GetTask(params map[string]string) interface{}
- func (c *Client) GetUsers() interface{}
- func (c *Client) ParamInterface(method, endpoint string, params interface{}) []byte
- func (c *Client) Post(endpoint string, params map[string]string) []byte
- func (c *Client) PostDepartment(params map[string]string) interface{}
- func (c *Client) PostLogin(endpoint string, params map[string]string, auths map[string]string) []byte
- func (c *Client) PostPosition(params map[string]string) interface{}
- func (c *Client) PostUser(params interface{}) interface{}
- func (c *Client) Put(endpoint string, params map[string]string) []byte
- func (c *Client) PutDepartment(deartId string, params map[string]string) interface{}
- func (c *Client) PutPosition(posId string, params map[string]string) interface{}
- func (c *Client) PutUser(userId string, params interface{}) interface{}
- func (c *Client) PutUserStatus(userId string, params map[string]string) interface{}
- func (c *Client) RequestByForm(method, endpoint string, params map[string]string) []byte
- func (c *Client) RequestForm(wfsId string) interface{}
- func (c *Client) SubmitForm(params interface{}) interface{}
- func (c *Client) UploadFile(params map[string]string) interface{}
- type DataAuth
- type DataResp
- type DataReturn
- type Element
- type Elements
- type ErrorDetail
- type Http
- type MUserDeptPositions
- type RequestForm
- type Sections
- type TableRowData
- type User
Constants ¶
View Source
const AppUrl = "/en/applications"
Application
View Source
const BaseUrl = `https://api.stage-smartflow.com/ext/v1`
View Source
const DepartmentUrl = "/en/departments/"
Department
View Source
const Key = "fdc0d05067ea7858ac11"
View Source
const PositionUrl = "/en/positions/"
Position
View Source
const RoleUrl = "/en/roles/"
User
View Source
const Token = "0230d82f17127f9fd3ac_613d7c9f698bcbf1b5e2"
View Source
const UserUrl = "/en/users/"
View Source
const Username = "dev_tmh@yopmail.com"
Variables ¶
This section is empty.
Functions ¶
func ConvertToByte ¶
func ConvertToByte(resp interface{}) []byte
func ConvertToStruct ¶
func ConvertToStruct(resp []byte) interface{}
Types ¶
type Client ¶
func (*Client) CreateForm ¶
func (*Client) DeleteDepart ¶
func (*Client) DeleteImage ¶
func (*Client) DeletePosition ¶
func (*Client) DownloadZip ¶
func (*Client) FindStatus ¶
func (*Client) GetDepartDetail ¶
func (*Client) GetDepartments ¶
func (c *Client) GetDepartments() interface{}
func (*Client) GetPosition ¶
func (c *Client) GetPosition() interface{}
func (*Client) GetPositionDetail ¶
func (*Client) GetTask ¶
params keys
- id
- application_name
- User name
- assigned_user
- Original user
- Proxy user
- status
- all_tasks
- current_page_number
func (*Client) ParamInterface ¶
func (*Client) PostUser ¶
func (c *Client) PostUser(params interface{}) interface{}
params keys
- username
- role_id
- last_name
- first_name
- employee_id
- slack_member_id
func (*Client) RequestByForm ¶
func (*Client) RequestForm ¶
func (*Client) SubmitForm ¶
func (c *Client) SubmitForm(params interface{}) interface{}
params keys
- comment
- submit_status
- t_todo_task_detail
- wfs_id
- request_form
type DataReturn ¶
Application for dayoff
type ErrorDetail ¶
type MUserDeptPositions ¶
type RequestForm ¶
type TableRowData ¶
type User ¶
type User struct { Username string `json:"username"` Email string `json:"email"` RoleID string `json:"role_id"` LastName string `json:"last_name"` FirstName string `json:"first_name"` EmployeeID string `json:"employee_id"` SlackMemberID string `json:"slack_member_id"` MUserDeptPositions []MUserDeptPositions `json:"m_user_dept_positions"` }
Click to show internal directories.
Click to hide internal directories.